/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id, $approve) { $vacation = \App\Vacation_Request::find($id); $vacation->approved = $approve; $vacation->save(); return redirect()->action('ApprovalController@index'); }