0👍
Try to eager load the relation:
return response()->json([ 'orders' => $order->load('product') ]);
After that (assuming the order belongs to a product), you can show the product name in Vue like this:
{{ order.product.name }}
- [Vuejs]-Vuejs display Laravel errors in flash component
- [Vuejs]-Axios not failing on get call in NS VUEJS APP
Source:stackexchange.com