/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $media = Media::find($id); $galleries = Gallery::all()->lists('title_en', 'id'); return view('media.edit', compact('media', 'galleries')); }