const res = await this.callApi('post','place_order',this.formItem)
if(res.status == 200){
this.order.push(res.data)
this.s("Order Successful !")
this.formItem = {}
}
Когда я получил ответ от контроллера, это показывает, что 'pu sh' не определено.
И это мой контроллер
public function place_order(Request $request){
$data = $request->all();
$order= Order::create($data);
return response()->json([
'order' => $order,
'success' => true
],200);
}