Commit 252943e0 authored by Viral Solani's avatar Viral Solani

send deleted item in delete apis for user , role and permisssion

parent 9a527ae4
......@@ -106,6 +106,7 @@ class PermissionController extends APIController
$this->repository->delete($permission);
return $this->respond([
'data' => $permission->id,
'message' => trans('alerts.backend.permissions.deleted'),
]);
}
......
......@@ -108,6 +108,7 @@ class RolesController extends APIController
$this->repository->delete($role);
return $this->respond([
'data' => $role->id,
'message' => trans('alerts.backend.roles.deleted'),
]);
}
......
......@@ -108,6 +108,7 @@ class UsersController extends APIController
$this->repository->delete($user);
return $this->respond([
'data' => $user->id,
'message' => trans('alerts.backend.users.deleted'),
]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment