/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { // IF there is a previously uploaded award image file, delete it if (Session::has('award_image_upload')) { Storage::delete(storage_path('app\\uploads') . '\\' . Session::get('award_image_upload')); Session::delete('award_image_upload'); } $award = Award::findOrFail($id); return view('award.edit')->with('award', $award); }