Exemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Todo::destroy($id);
 }
Exemplo n.º 2
0
 /**
  * Remove the specified todo from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Todo::destroy($id);
     return Redirect::route('todos.index');
 }