/** * Update the specified resource in storage. * * @param int $id * * @return Response */ public function update($id, Request $request) { $this->validate($request, ['product_id' => 'required', 'order_id' => 'required', 'price' => 'required']); $orderNote = OrderNote::findOrFail($id); $orderNote->update($request->all()); Session::flash('flash_message', 'OrderNote updated!'); return redirect('backoffice/ordernotes'); }
/** * Display the specified resource. * * @param int $id * * @return Response */ public function show($id) { $orderNote = OrderNote::findOrFail($id); return view('frontoffice.ordernotes.show', compact('orderNote')); }