/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $media = $this->media->find($id); if (is_null($media)) { return Redirect::route('media.index'); } return View::make('media.edit', compact('media')); }