/** * Display a listing of the resource. * * @return Response */ public function index() { $orderDetails = OrderDetail::all(); return view('orderDetails.index', compact('orderDetails')); }