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