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