Пример #1
0
 /**
  * Remove the specified department from storage.
  */
 public function destroy($id)
 {
     if (Request::ajax()) {
         Department::destroy($id);
         $output['success'] = 'deleted';
         return Response::json($output, 200);
     }
 }
Пример #2
0
 /**
  * Remove the specified branch from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Department::destroy($id);
     return Redirect::route('departments.index');
 }