Пример #1
0
 public function destroy(Permission $permission)
 {
     if (is_integer($permission)) {
         $permission = Permission::find($permission);
     }
     $permission->delete();
     Flash::success('Permission has been created Deleted!');
     return Redirect::back();
 }
 public function destroy($permission)
 {
     $permission = Permission::find($permission);
     $permission->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }