app/Containers/Authorization/UI/API/Controllers/Controller.php 1 location
|
@@ 129-136 (lines=8) @@
|
126 |
|
* |
127 |
|
* @return \Dingo\Api\Http\Response |
128 |
|
*/ |
129 |
|
public function deleteRole(DeleteRoleRequest $request, DeleteRoleAction $action) |
130 |
|
{ |
131 |
|
$role = $action->run($request->id); |
132 |
|
|
133 |
|
return $this->response->accepted(null, [ |
134 |
|
'message' => 'Role (' . $role->getHashedKey() . ') Deleted Successfully.', |
135 |
|
]); |
136 |
|
} |
137 |
|
|
138 |
|
/** |
139 |
|
* @param \App\Containers\Authorization\UI\API\Requests\RevokeUserFromRoleRequest $request |
app/Containers/User/UI/API/Controllers/Controller.php 1 location
|
@@ 35-42 (lines=8) @@
|
32 |
|
* |
33 |
|
* @return \Dingo\Api\Http\Response |
34 |
|
*/ |
35 |
|
public function deleteUser(DeleteUserRequest $request, DeleteUserAction $action) |
36 |
|
{ |
37 |
|
$user = $action->run($request->id); |
38 |
|
|
39 |
|
return $this->response->accepted(null, [ |
40 |
|
'message' => 'User (' . $user->getHashedKey() . ') Deleted Successfully.', |
41 |
|
]); |
42 |
|
} |
43 |
|
|
44 |
|
/** |
45 |
|
* @param \App\Containers\User\UI\API\Requests\ListAllUsersRequest $request |