validated()); if ($request->get('from_customer')) { return redirect()->route('customers.show', [ Customer::find($request->get('customer_id')), 'tab' => 'packing' ]); } return redirect()->back(); //todo: change to packing slips page } public function show($id) { } public function edit($id) { } public function update(Request $request, $id) { } public function destroy($id) { } }