/**
  * Remove the specified department from storage.
  */
 public function destroy($id)
 {
     if (Request::ajax()) {
         Destino::destroy($id);
         $output['success'] = 'deleted';
         return Response::json($output, 200);
     }
 }
Exemple #2
0
 /**
  * Remove the specified destino from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Destino::destroy($id);
     return Redirect::route('destinos.index');
 }