/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $stats = Statuses::findorFail($id); $stats->delete(); return redirect('admin/status'); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $passports = Passport::findorFail($id); $statuses = Statuses::lists('Status_Name', 'id'); return view('admin.Passport_Status.edit')->with('passports', $passports)->with('statuses', $statuses); }
/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $statuses = Statuses::lists('Status_Name', 'id'); return view('admin.passport.create')->with('statuses', $statuses); }