· 7 years ago · Apr 20, 2018, 03:00 AM
1{
2 "error": true,
3 "message": {
4 "line": 1983,
5 "track": [
6 {
7 "file": "/app/app/Service/OrderService.php",
8 "line": 1983,
9 "function": "handleError",
10 "class": "Illuminate\\Foundation\\Bootstrap\\HandleExceptions",
11 "type": "->",
12 "args": [
13 8,
14 "Undefined index: promo_quantity",
15 "/app/app/Service/OrderService.php",
16 1983,
17 {
18 "data": {
19 "items": [
20 {
21 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
22 "item_quantity": 2,
23 "item_options": []
24 },
25 {
26 "item_uuid": "a7947f80-443d-11e8-9a4d-4776b7ff59ad",
27 "item_quantity": 2,
28 "item_options": []
29 }
30 ],
31 "customer": {
32 "customer_address": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
33 "customer_lat": 21.030942,
34 "customer_long": 105.783911,
35 "address_note": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
36 "customer_phone": "0983145327",
37 "country_code": 84
38 },
39 "request_time": 0,
40 "order_type": 3,
41 "order_note": "tao order delivery",
42 "device_id": "Device IOS 1000",
43 "secret_key": "qbktxJY33PKha53jkCpdu6CkFJNZvqds"
44 },
45 "outletUuid": "825b7580-4390-11e8-9497-cfdaf83ea0bb",
46 "isFromBiz": false,
47 "message": [],
48 "result": [],
49 "onlineSetting": {
50 "outlet_uuid": "825b7580-4390-11e8-9497-cfdaf83ea0bb",
51 "recipients": null,
52 "hours_open": "{\"MONDAY\":{\"open\":1,\"from\":{\"day\":1,\"hour\":10,\"minute\":0,\"time\":\"10:00 AM\"},\"to\":{\"day\":1,\"hour\":23,\"minute\":30,\"time\":\"11:30 PM\"}},\"TUESDAY\":{\"open\":1,\"from\":{\"day\":2,\"hour\":10,\"minute\":0,\"time\":\"10:00 AM\"},\"to\":{\"day\":2,\"hour\":23,\"minute\":30,\"time\":\"11:30 PM\"}},\"WEDNESDAY\":{\"open\":1,\"from\":{\"day\":3,\"hour\":10,\"minute\":0,\"time\":\"10:00 AM\"},\"to\":{\"day\":3,\"hour\":23,\"minute\":30,\"time\":\"11:30 PM\"}},\"THURSDAY\":{\"open\":1,\"from\":{\"day\":4,\"hour\":10,\"minute\":0,\"time\":\"10:00 AM\"},\"to\":{\"day\":4,\"hour\":23,\"minute\":30,\"time\":\"11:30 PM\"}},\"FRIDAY\":{\"open\":1,\"from\":{\"day\":5,\"hour\":10,\"minute\":0,\"time\":\"10:00 AM\"},\"to\":{\"day\":5,\"hour\":23,\"minute\":30,\"time\":\"11:30 PM\"}},\"SATURDAY\":{\"open\":1,\"from\":{\"day\":6,\"hour\":10,\"minute\":0,\"time\":\"10:00 AM\"},\"to\":{\"day\":6,\"hour\":23,\"minute\":30,\"time\":\"11:30 PM\"}},\"SUNDAY\":{\"open\":1,\"from\":{\"day\":0,\"hour\":10,\"minute\":0,\"time\":\"10:00 AM\"},\"to\":{\"day\":0,\"hour\":23,\"minute\":30,\"time\":\"11:30 PM\"}}}",
53 "hours_delivery": null,
54 "hours_takeaway": null,
55 "published": 1,
56 "published_catalogue": "82745890-4390-11e8-94c6-b34482dfc583",
57 "connect_pos": 0,
58 "do_delivery": 1,
59 "do_takeaway": 1,
60 "min_delivery_cost": 0,
61 "max_delivery_cost": 0,
62 "delivery_distance": 0,
63 "delivery_fee": 0,
64 "preparation_time": null,
65 "created_at": "2018-04-19 05:14:17",
66 "updated_at": "2018-04-19 05:14:38",
67 "hotel_id": null,
68 "consumer_taxes": "[{\"tax_uuid\":\"56a04560-4443-11e8-b9d7-b7d81cb5801b\"},{\"tax_uuid\":\"78360540-4443-11e8-a489-17da4b1f643b\"}]",
69 "consumer_discounts": "[{\"dis_uuid\":\"7b3c2310-4444-11e8-acb9-77b977297953\"}]"
70 },
71 "item": {
72 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
73 "item_quantity": 2,
74 "item_options": []
75 },
76 "itemKey": 0,
77 "totalOptionPrice": 0,
78 "subTotalDiscount": 32780,
79 "subTotalTax": 49170,
80 "validPromo": null,
81 "dbItem": {
82 "id": null,
83 "open_item_unique_id": null,
84 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
85 "category_uuid": "a6b58ff0-443d-11e8-a6d6-879b9023cb39",
86 "outlet_uuid": "825b7580-4390-11e8-9497-cfdaf83ea0bb",
87 "type": 0,
88 "default_price": 327800,
89 "cost": 0,
90 "markup": 0,
91 "gallery": null,
92 "ean": null,
93 "plu": null,
94 "sku": null,
95 "short_code": null,
96 "recipe_uuid": null,
97 "stock": 0,
98 "publish_menu": 0,
99 "publish_web": 1,
100 "created_at": "2018-04-20 01:53:41",
101 "updated_at": "2018-04-20 01:53:41",
102 "featured": 0,
103 "estimated_time": null,
104 "option": [],
105 "translations": [
106 {
107 "lang_iso_code": "en",
108 "name": "BT-01 Shokado Bento & Miso soup",
109 "unit": null,
110 "description": "",
111 "slug": "bt-01-shokado-bento-miso-soup"
112 }
113 ],
114 "name": "BT-01 Shokado Bento & Miso soup",
115 "unit": null,
116 "description": "",
117 "slug": "bt-01-shokado-bento-miso-soup"
118 },
119 "itemCategory": {
120 "id": null,
121 "p_id": null,
122 "category_uuid": "a6b58ff0-443d-11e8-a6d6-879b9023cb39",
123 "outlet_uuid": "825b7580-4390-11e8-9497-cfdaf83ea0bb",
124 "catalog_uuid": "82745890-4390-11e8-94c6-b34482dfc583",
125 "parent_uuid": null,
126 "lft": 9540,
127 "rgt": 9541,
128 "depth": 0,
129 "color": null,
130 "photo": null,
131 "total_item": 0,
132 "created_at": "2018-04-20 01:53:41",
133 "updated_at": "2018-04-20 01:53:41",
134 "translations": [
135 {
136 "lang_iso_code": "en",
137 "name": "Cơm hộp",
138 "slug": "com-hop"
139 }
140 ],
141 "name": "Cơm hộp",
142 "slug": "com-hop"
143 },
144 "tempArray": {
145 "item_category": {
146 "id": "a6b58ff0-443d-11e8-a6d6-879b9023cb39",
147 "name": "Cơm hộp"
148 },
149 "selected_item_option": [],
150 "option_set": [],
151 "discounts": [
152 {
153 "type": 1,
154 "id": "7b3c2310-4444-11e8-acb9-77b977297953",
155 "name": "Discount 10%",
156 "value": 10,
157 "discounted_amount": 32780
158 }
159 ],
160 "taxes": [
161 {
162 "type": 1,
163 "id": "56a04560-4443-11e8-b9d7-b7d81cb5801b",
164 "name": "VAT",
165 "value": 10,
166 "taxed_amount": 32780
167 },
168 {
169 "type": 1,
170 "id": "78360540-4443-11e8-a489-17da4b1f643b",
171 "name": "Service charge",
172 "value": 5,
173 "taxed_amount": 16390
174 }
175 ]
176 },
177 "currentItemPrice": 327800,
178 "currentItemQty": 2,
179 "itemAmount": 327800,
180 "itemSubTotal": 295020,
181 "itemTotalTax": 98340,
182 "total": 688380
183 }
184 ]
185 },
186 {
187 "file": "/app/app/Service/OrderService.php",
188 "line": 1148,
189 "function": "getItemDetails",
190 "class": "App\\Service\\OrderService",
191 "type": "->",
192 "args": [
193 {
194 "items": [
195 {
196 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
197 "item_quantity": 2,
198 "item_options": []
199 },
200 {
201 "item_uuid": "a7947f80-443d-11e8-9a4d-4776b7ff59ad",
202 "item_quantity": 2,
203 "item_options": []
204 }
205 ],
206 "customer": {
207 "customer_address": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
208 "customer_lat": 21.030942,
209 "customer_long": 105.783911,
210 "address_note": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
211 "customer_phone": "0983145327",
212 "country_code": 84
213 },
214 "request_time": 0,
215 "order_type": 3,
216 "order_note": "tao order delivery",
217 "device_id": "Device IOS 1000",
218 "secret_key": "qbktxJY33PKha53jkCpdu6CkFJNZvqds"
219 },
220 "825b7580-4390-11e8-9497-cfdaf83ea0bb",
221 false,
222 []
223 ]
224 },
225 {
226 "file": "/app/app/Service/OrderService.php",
227 "line": 303,
228 "function": "processOrderData",
229 "class": "App\\Service\\OrderService",
230 "type": "->",
231 "args": [
232 {
233 "items": [
234 {
235 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
236 "item_quantity": 2,
237 "item_options": []
238 },
239 {
240 "item_uuid": "a7947f80-443d-11e8-9a4d-4776b7ff59ad",
241 "item_quantity": 2,
242 "item_options": []
243 }
244 ],
245 "customer": {
246 "customer_address": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
247 "customer_lat": 21.030942,
248 "customer_long": 105.783911,
249 "address_note": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
250 "customer_phone": "0983145327",
251 "country_code": 84
252 },
253 "request_time": 0,
254 "order_type": 3,
255 "order_note": "tao order delivery",
256 "device_id": "Device IOS 1000",
257 "secret_key": "qbktxJY33PKha53jkCpdu6CkFJNZvqds"
258 },
259 false,
260 []
261 ]
262 },
263 {
264 "file": "/app/app/Http/Controllers/Consumer/OrderController.php",
265 "line": 26,
266 "function": "createOrder",
267 "class": "App\\Service\\OrderService",
268 "type": "->",
269 "args": [
270 {
271 "items": [
272 {
273 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
274 "item_quantity": 2,
275 "item_options": []
276 },
277 {
278 "item_uuid": "a7947f80-443d-11e8-9a4d-4776b7ff59ad",
279 "item_quantity": 2,
280 "item_options": []
281 }
282 ],
283 "customer": {
284 "customer_address": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
285 "customer_lat": 21.030942,
286 "customer_long": 105.783911,
287 "address_note": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
288 "customer_phone": "0983145327",
289 "country_code": 84
290 },
291 "request_time": 0,
292 "order_type": 3,
293 "order_note": "tao order delivery",
294 "device_id": "Device IOS 1000",
295 "secret_key": "qbktxJY33PKha53jkCpdu6CkFJNZvqds"
296 },
297 false,
298 []
299 ]
300 },
301 {
302 "function": "createOrder",
303 "class": "App\\Http\\Controllers\\Consumer\\OrderController",
304 "type": "->",
305 "args": [
306 {
307 "gg_config": {
308 "projectId": "hottab-in"
309 }
310 }
311 ]
312 },
313 {
314 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
315 "line": 55,
316 "function": "call_user_func_array",
317 "args": [
318 [
319 {
320 "request": null,
321 "input": {
322 "items": [
323 {
324 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
325 "item_quantity": 2,
326 "item_options": []
327 },
328 {
329 "item_uuid": "a7947f80-443d-11e8-9a4d-4776b7ff59ad",
330 "item_quantity": 2,
331 "item_options": []
332 }
333 ],
334 "customer": {
335 "customer_address": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
336 "customer_lat": 21.030942,
337 "customer_long": 105.783911,
338 "address_note": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
339 "customer_phone": "0983145327",
340 "country_code": 84
341 },
342 "request_time": 0,
343 "order_type": 3,
344 "order_note": "tao order delivery",
345 "device_id": "Device IOS 1000",
346 "secret_key": "qbktxJY33PKha53jkCpdu6CkFJNZvqds"
347 },
348 "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjMjQzZDJmMC0yOGQ5LTExZTgtYTI3Mi0zZDdjODI0Y2JmYjciLCJpc3MiOiJodHRwczovL2RvbnV0LWRvdC1ob3R0YWItaW4uYXBwc3BvdC5jb20vY3VzdG9tZXIvbG9naW4iLCJpYXQiOjE1MjQxOTEzMDEsImV4cCI6MTUyNDI3NzcwMSwibmJmIjoxNTI0MTkxMzAxLCJqdGkiOiJwMm9tb1N1djlsVWthQXFzIn0.JMs1UtlnVb8NK1wsYUuoSpObp8ykcZGNWFVc67Mo2cA",
349 "user": false,
350 "lang": {
351 "id": 1,
352 "name": "English - English",
353 "iso_code": "en",
354 "order": 2
355 }
356 },
357 "createOrder"
358 ],
359 [
360 {
361 "gg_config": {
362 "projectId": "hottab-in"
363 }
364 }
365 ]
366 ]
367 },
368 {
369 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
370 "line": 44,
371 "function": "callAction",
372 "class": "Illuminate\\Routing\\Controller",
373 "type": "->",
374 "args": [
375 "createOrder",
376 [
377 {
378 "gg_config": {
379 "projectId": "hottab-in"
380 }
381 }
382 ]
383 ]
384 },
385 {
386 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
387 "line": 203,
388 "function": "dispatch",
389 "class": "Illuminate\\Routing\\ControllerDispatcher",
390 "type": "->",
391 "args": [
392 {
393 "uri": "orders",
394 "methods": [
395 "POST"
396 ],
397 "action": {
398 "middleware": [
399 "check-route-key",
400 "jwt.customer"
401 ],
402 "uses": "\\App\\Http\\Controllers\\Consumer\\OrderController@createOrder",
403 "controller": "\\App\\Http\\Controllers\\Consumer\\OrderController@createOrder",
404 "namespace": "\\App\\Http\\Controllers\\Consumer",
405 "prefix": "orders",
406 "where": []
407 },
408 "controller": {
409 "request": null,
410 "input": {
411 "items": [
412 {
413 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
414 "item_quantity": 2,
415 "item_options": []
416 },
417 {
418 "item_uuid": "a7947f80-443d-11e8-9a4d-4776b7ff59ad",
419 "item_quantity": 2,
420 "item_options": []
421 }
422 ],
423 "customer": {
424 "customer_address": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
425 "customer_lat": 21.030942,
426 "customer_long": 105.783911,
427 "address_note": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
428 "customer_phone": "0983145327",
429 "country_code": 84
430 },
431 "request_time": 0,
432 "order_type": 3,
433 "order_note": "tao order delivery",
434 "device_id": "Device IOS 1000",
435 "secret_key": "qbktxJY33PKha53jkCpdu6CkFJNZvqds"
436 },
437 "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjMjQzZDJmMC0yOGQ5LTExZTgtYTI3Mi0zZDdjODI0Y2JmYjciLCJpc3MiOiJodHRwczovL2RvbnV0LWRvdC1ob3R0YWItaW4uYXBwc3BvdC5jb20vY3VzdG9tZXIvbG9naW4iLCJpYXQiOjE1MjQxOTEzMDEsImV4cCI6MTUyNDI3NzcwMSwibmJmIjoxNTI0MTkxMzAxLCJqdGkiOiJwMm9tb1N1djlsVWthQXFzIn0.JMs1UtlnVb8NK1wsYUuoSpObp8ykcZGNWFVc67Mo2cA",
438 "user": false,
439 "lang": {
440 "id": 1,
441 "name": "English - English",
442 "iso_code": "en",
443 "order": 2
444 }
445 },
446 "defaults": [],
447 "wheres": [],
448 "parameters": [],
449 "parameterNames": [],
450 "computedMiddleware": [
451 "check-route-key",
452 "jwt.customer"
453 ],
454 "compiled": {}
455 },
456 {
457 "request": null,
458 "input": {
459 "items": [
460 {
461 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
462 "item_quantity": 2,
463 "item_options": []
464 },
465 {
466 "item_uuid": "a7947f80-443d-11e8-9a4d-4776b7ff59ad",
467 "item_quantity": 2,
468 "item_options": []
469 }
470 ],
471 "customer": {
472 "customer_address": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
473 "customer_lat": 21.030942,
474 "customer_long": 105.783911,
475 "address_note": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
476 "customer_phone": "0983145327",
477 "country_code": 84
478 },
479 "request_time": 0,
480 "order_type": 3,
481 "order_note": "tao order delivery",
482 "device_id": "Device IOS 1000",
483 "secret_key": "qbktxJY33PKha53jkCpdu6CkFJNZvqds"
484 },
485 "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjMjQzZDJmMC0yOGQ5LTExZTgtYTI3Mi0zZDdjODI0Y2JmYjciLCJpc3MiOiJodHRwczovL2RvbnV0LWRvdC1ob3R0YWItaW4uYXBwc3BvdC5jb20vY3VzdG9tZXIvbG9naW4iLCJpYXQiOjE1MjQxOTEzMDEsImV4cCI6MTUyNDI3NzcwMSwibmJmIjoxNTI0MTkxMzAxLCJqdGkiOiJwMm9tb1N1djlsVWthQXFzIn0.JMs1UtlnVb8NK1wsYUuoSpObp8ykcZGNWFVc67Mo2cA",
486 "user": false,
487 "lang": {
488 "id": 1,
489 "name": "English - English",
490 "iso_code": "en",
491 "order": 2
492 }
493 },
494 "createOrder"
495 ]
496 },
497 {
498 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
499 "line": 160,
500 "function": "runController",
501 "class": "Illuminate\\Routing\\Route",
502 "type": "->",
503 "args": []
504 },
505 {
506 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
507 "line": 572,
508 "function": "run",
509 "class": "Illuminate\\Routing\\Route",
510 "type": "->",
511 "args": []
512 },
513 {
514 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
515 "line": 30,
516 "function": "Illuminate\\Routing\\{closure}",
517 "class": "Illuminate\\Routing\\Router",
518 "type": "->",
519 "args": [
520 {
521 "attributes": {},
522 "request": {},
523 "query": {},
524 "server": {},
525 "files": {},
526 "cookies": {},
527 "headers": {}
528 }
529 ]
530 },
531 {
532 "file": "/app/app/Http/Middleware/VerifyJWTToken.php",
533 "line": 65,
534 "function": "Illuminate\\Routing\\{closure}",
535 "class": "Illuminate\\Routing\\Pipeline",
536 "type": "->",
537 "args": [
538 {
539 "attributes": {},
540 "request": {},
541 "query": {},
542 "server": {},
543 "files": {},
544 "cookies": {},
545 "headers": {}
546 }
547 ]
548 },
549 {
550 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
551 "line": 148,
552 "function": "handle",
553 "class": "App\\Http\\Middleware\\VerifyJWTToken",
554 "type": "->",
555 "args": [
556 {
557 "attributes": {},
558 "request": {},
559 "query": {},
560 "server": {},
561 "files": {},
562 "cookies": {},
563 "headers": {}
564 },
565 {}
566 ]
567 },
568 {
569 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
570 "line": 53,
571 "function": "Illuminate\\Pipeline\\{closure}",
572 "class": "Illuminate\\Pipeline\\Pipeline",
573 "type": "->",
574 "args": [
575 {
576 "attributes": {},
577 "request": {},
578 "query": {},
579 "server": {},
580 "files": {},
581 "cookies": {},
582 "headers": {}
583 }
584 ]
585 },
586 {
587 "file": "/app/app/Http/Middleware/CheckRouteKey.php",
588 "line": 59,
589 "function": "Illuminate\\Routing\\{closure}",
590 "class": "Illuminate\\Routing\\Pipeline",
591 "type": "->",
592 "args": [
593 {
594 "attributes": {},
595 "request": {},
596 "query": {},
597 "server": {},
598 "files": {},
599 "cookies": {},
600 "headers": {}
601 }
602 ]
603 },
604 {
605 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
606 "line": 148,
607 "function": "handle",
608 "class": "App\\Http\\Middleware\\CheckRouteKey",
609 "type": "->",
610 "args": [
611 {
612 "attributes": {},
613 "request": {},
614 "query": {},
615 "server": {},
616 "files": {},
617 "cookies": {},
618 "headers": {}
619 },
620 {}
621 ]
622 },
623 {
624 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
625 "line": 53,
626 "function": "Illuminate\\Pipeline\\{closure}",
627 "class": "Illuminate\\Pipeline\\Pipeline",
628 "type": "->",
629 "args": [
630 {
631 "attributes": {},
632 "request": {},
633 "query": {},
634 "server": {},
635 "files": {},
636 "cookies": {},
637 "headers": {}
638 }
639 ]
640 },
641 {
642 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
643 "line": 102,
644 "function": "Illuminate\\Routing\\{closure}",
645 "class": "Illuminate\\Routing\\Pipeline",
646 "type": "->",
647 "args": [
648 {
649 "attributes": {},
650 "request": {},
651 "query": {},
652 "server": {},
653 "files": {},
654 "cookies": {},
655 "headers": {}
656 }
657 ]
658 },
659 {
660 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
661 "line": 574,
662 "function": "then",
663 "class": "Illuminate\\Pipeline\\Pipeline",
664 "type": "->",
665 "args": [
666 {}
667 ]
668 },
669 {
670 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
671 "line": 533,
672 "function": "runRouteWithinStack",
673 "class": "Illuminate\\Routing\\Router",
674 "type": "->",
675 "args": [
676 {
677 "uri": "orders",
678 "methods": [
679 "POST"
680 ],
681 "action": {
682 "middleware": [
683 "check-route-key",
684 "jwt.customer"
685 ],
686 "uses": "\\App\\Http\\Controllers\\Consumer\\OrderController@createOrder",
687 "controller": "\\App\\Http\\Controllers\\Consumer\\OrderController@createOrder",
688 "namespace": "\\App\\Http\\Controllers\\Consumer",
689 "prefix": "orders",
690 "where": []
691 },
692 "controller": {
693 "request": null,
694 "input": {
695 "items": [
696 {
697 "item_uuid": "a6f2c900-443d-11e8-b7a2-61f8930fecf7",
698 "item_quantity": 2,
699 "item_options": []
700 },
701 {
702 "item_uuid": "a7947f80-443d-11e8-9a4d-4776b7ff59ad",
703 "item_quantity": 2,
704 "item_options": []
705 }
706 ],
707 "customer": {
708 "customer_address": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
709 "customer_lat": 21.030942,
710 "customer_long": 105.783911,
711 "address_note": "105 Phố Duy Tân, Dịch Vá»ng Háºu, Cầu Giấy, Hà Ná»™i, Vietnam",
712 "customer_phone": "0983145327",
713 "country_code": 84
714 },
715 "request_time": 0,
716 "order_type": 3,
717 "order_note": "tao order delivery",
718 "device_id": "Device IOS 1000",
719 "secret_key": "qbktxJY33PKha53jkCpdu6CkFJNZvqds"
720 },
721 "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjMjQzZDJmMC0yOGQ5LTExZTgtYTI3Mi0zZDdjODI0Y2JmYjciLCJpc3MiOiJodHRwczovL2RvbnV0LWRvdC1ob3R0YWItaW4uYXBwc3BvdC5jb20vY3VzdG9tZXIvbG9naW4iLCJpYXQiOjE1MjQxOTEzMDEsImV4cCI6MTUyNDI3NzcwMSwibmJmIjoxNTI0MTkxMzAxLCJqdGkiOiJwMm9tb1N1djlsVWthQXFzIn0.JMs1UtlnVb8NK1wsYUuoSpObp8ykcZGNWFVc67Mo2cA",
722 "user": false,
723 "lang": {
724 "id": 1,
725 "name": "English - English",
726 "iso_code": "en",
727 "order": 2
728 }
729 },
730 "defaults": [],
731 "wheres": [],
732 "parameters": [],
733 "parameterNames": [],
734 "computedMiddleware": [
735 "check-route-key",
736 "jwt.customer"
737 ],
738 "compiled": {}
739 },
740 {
741 "attributes": {},
742 "request": {},
743 "query": {},
744 "server": {},
745 "files": {},
746 "cookies": {},
747 "headers": {}
748 }
749 ]
750 },
751 {
752 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
753 "line": 511,
754 "function": "dispatchToRoute",
755 "class": "Illuminate\\Routing\\Router",
756 "type": "->",
757 "args": [
758 {
759 "attributes": {},
760 "request": {},
761 "query": {},
762 "server": {},
763 "files": {},
764 "cookies": {},
765 "headers": {}
766 }
767 ]
768 },
769 {
770 "file": "/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
771 "line": 176,
772 "function": "dispatch",
773 "class": "Illuminate\\Routing\\Router",
774 "type": "->",
775 "args": [
776 {
777 "attributes": {},
778 "request": {},
779 "query": {},
780 "server": {},
781 "files": {},
782 "cookies": {},
783 "headers": {}
784 }
785 ]
786 },
787 {
788 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
789 "line": 30,
790 "function": "Illuminate\\Foundation\\Http\\{closure}",
791 "class": "Illuminate\\Foundation\\Http\\Kernel",
792 "type": "->",
793 "args": [
794 {
795 "attributes": {},
796 "request": {},
797 "query": {},
798 "server": {},
799 "files": {},
800 "cookies": {},
801 "headers": {}
802 }
803 ]
804 },
805 {
806 "file": "/app/vendor/barryvdh/laravel-cors/src/HandleCors.php",
807 "line": 37,
808 "function": "Illuminate\\Routing\\{closure}",
809 "class": "Illuminate\\Routing\\Pipeline",
810 "type": "->",
811 "args": [
812 {
813 "attributes": {},
814 "request": {},
815 "query": {},
816 "server": {},
817 "files": {},
818 "cookies": {},
819 "headers": {}
820 }
821 ]
822 },
823 {
824 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
825 "line": 148,
826 "function": "handle",
827 "class": "Barryvdh\\Cors\\HandleCors",
828 "type": "->",
829 "args": [
830 {
831 "attributes": {},
832 "request": {},
833 "query": {},
834 "server": {},
835 "files": {},
836 "cookies": {},
837 "headers": {}
838 },
839 {}
840 ]
841 },
842 {
843 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
844 "line": 53,
845 "function": "Illuminate\\Pipeline\\{closure}",
846 "class": "Illuminate\\Pipeline\\Pipeline",
847 "type": "->",
848 "args": [
849 {
850 "attributes": {},
851 "request": {},
852 "query": {},
853 "server": {},
854 "files": {},
855 "cookies": {},
856 "headers": {}
857 }
858 ]
859 },
860 {
861 "file": "/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
862 "line": 30,
863 "function": "Illuminate\\Routing\\{closure}",
864 "class": "Illuminate\\Routing\\Pipeline",
865 "type": "->",
866 "args": [
867 {
868 "attributes": {},
869 "request": {},
870 "query": {},
871 "server": {},
872 "files": {},
873 "cookies": {},
874 "headers": {}
875 }
876 ]
877 },
878 {
879 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
880 "line": 148,
881 "function": "handle",
882 "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
883 "type": "->",
884 "args": [
885 {
886 "attributes": {},
887 "request": {},
888 "query": {},
889 "server": {},
890 "files": {},
891 "cookies": {},
892 "headers": {}
893 },
894 {}
895 ]
896 },
897 {
898 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
899 "line": 53,
900 "function": "Illuminate\\Pipeline\\{closure}",
901 "class": "Illuminate\\Pipeline\\Pipeline",
902 "type": "->",
903 "args": [
904 {
905 "attributes": {},
906 "request": {},
907 "query": {},
908 "server": {},
909 "files": {},
910 "cookies": {},
911 "headers": {}
912 }
913 ]
914 },
915 {
916 "file": "/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
917 "line": 30,
918 "function": "Illuminate\\Routing\\{closure}",
919 "class": "Illuminate\\Routing\\Pipeline",
920 "type": "->",
921 "args": [
922 {
923 "attributes": {},
924 "request": {},
925 "query": {},
926 "server": {},
927 "files": {},
928 "cookies": {},
929 "headers": {}
930 }
931 ]
932 },
933 {
934 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
935 "line": 148,
936 "function": "handle",
937 "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
938 "type": "->",
939 "args": [
940 {
941 "attributes": {},
942 "request": {},
943 "query": {},
944 "server": {},
945 "files": {},
946 "cookies": {},
947 "headers": {}
948 },
949 {}
950 ]
951 },
952 {
953 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
954 "line": 53,
955 "function": "Illuminate\\Pipeline\\{closure}",
956 "class": "Illuminate\\Pipeline\\Pipeline",
957 "type": "->",
958 "args": [
959 {
960 "attributes": {},
961 "request": {},
962 "query": {},
963 "server": {},
964 "files": {},
965 "cookies": {},
966 "headers": {}
967 }
968 ]
969 },
970 {
971 "file": "/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
972 "line": 27,
973 "function": "Illuminate\\Routing\\{closure}",
974 "class": "Illuminate\\Routing\\Pipeline",
975 "type": "->",
976 "args": [
977 {
978 "attributes": {},
979 "request": {},
980 "query": {},
981 "server": {},
982 "files": {},
983 "cookies": {},
984 "headers": {}
985 }
986 ]
987 },
988 {
989 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
990 "line": 148,
991 "function": "handle",
992 "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
993 "type": "->",
994 "args": [
995 {
996 "attributes": {},
997 "request": {},
998 "query": {},
999 "server": {},
1000 "files": {},
1001 "cookies": {},
1002 "headers": {}
1003 },
1004 {}
1005 ]
1006 },
1007 {
1008 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
1009 "line": 53,
1010 "function": "Illuminate\\Pipeline\\{closure}",
1011 "class": "Illuminate\\Pipeline\\Pipeline",
1012 "type": "->",
1013 "args": [
1014 {
1015 "attributes": {},
1016 "request": {},
1017 "query": {},
1018 "server": {},
1019 "files": {},
1020 "cookies": {},
1021 "headers": {}
1022 }
1023 ]
1024 },
1025 {
1026 "file": "/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php",
1027 "line": 46,
1028 "function": "Illuminate\\Routing\\{closure}",
1029 "class": "Illuminate\\Routing\\Pipeline",
1030 "type": "->",
1031 "args": [
1032 {
1033 "attributes": {},
1034 "request": {},
1035 "query": {},
1036 "server": {},
1037 "files": {},
1038 "cookies": {},
1039 "headers": {}
1040 }
1041 ]
1042 },
1043 {
1044 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
1045 "line": 148,
1046 "function": "handle",
1047 "class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode",
1048 "type": "->",
1049 "args": [
1050 {
1051 "attributes": {},
1052 "request": {},
1053 "query": {},
1054 "server": {},
1055 "files": {},
1056 "cookies": {},
1057 "headers": {}
1058 },
1059 {}
1060 ]
1061 },
1062 {
1063 "file": "/app/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
1064 "line": 53,
1065 "function": "Illuminate\\Pipeline\\{closure}",
1066 "class": "Illuminate\\Pipeline\\Pipeline",
1067 "type": "->",
1068 "args": [
1069 {
1070 "attributes": {},
1071 "request": {},
1072 "query": {},
1073 "server": {},
1074 "files": {},
1075 "cookies": {},
1076 "headers": {}
1077 }
1078 ]
1079 },
1080 {
1081 "file": "/app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
1082 "line": 102,
1083 "function": "Illuminate\\Routing\\{closure}",
1084 "class": "Illuminate\\Routing\\Pipeline",
1085 "type": "->",
1086 "args": [
1087 {
1088 "attributes": {},
1089 "request": {},
1090 "query": {},
1091 "server": {},
1092 "files": {},
1093 "cookies": {},
1094 "headers": {}
1095 }
1096 ]
1097 },
1098 {
1099 "file": "/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
1100 "line": 151,
1101 "function": "then",
1102 "class": "Illuminate\\Pipeline\\Pipeline",
1103 "type": "->",
1104 "args": [
1105 {}
1106 ]
1107 },
1108 {
1109 "file": "/app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
1110 "line": 116,
1111 "function": "sendRequestThroughRouter",
1112 "class": "Illuminate\\Foundation\\Http\\Kernel",
1113 "type": "->",
1114 "args": [
1115 {
1116 "attributes": {},
1117 "request": {},
1118 "query": {},
1119 "server": {},
1120 "files": {},
1121 "cookies": {},
1122 "headers": {}
1123 }
1124 ]
1125 },
1126 {
1127 "file": "/app/public/index.php",
1128 "line": 55,
1129 "function": "handle",
1130 "class": "Illuminate\\Foundation\\Http\\Kernel",
1131 "type": "->",
1132 "args": [
1133 {
1134 "attributes": {},
1135 "request": {},
1136 "query": {},
1137 "server": {},
1138 "files": {},
1139 "cookies": {},
1140 "headers": {}
1141 }
1142 ]
1143 }
1144 ],
1145 "general": {
1146 "message": "Undefined index: promo_quantity",
1147 "code": "undefined_index_promo_quantity"
1148 }
1149 }
1150}