/** * Show the form for editing the specified passeio. * * @param int $id * @return Response */ public function edit($id) { $passeio = Passeio::find($id); return View::make('passeios.edit', compact('passeio')); }
/** * Remove the specified passeio from storage. * * @param int $id * @return Response */ public function destroy($id) { $passeio = Passeio::find($id); $passeio->imagens()->delete(); $passeio->delete(); return Redirect::to('admin/passeio/')->with('success', array('Registro deletado.')); }