Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit b2eac8b

Browse files
committed
#15 Fix typo
1 parent 8087c3f commit b2eac8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/Api/Users/RolesController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public function update(Request $request, $uuid)
102102
*/
103103
public function destroy(Request $request, $uuid)
104104
{
105-
$user = $this->model->byUuid($uuid)->firstOrFail();
106-
$user->delete();
105+
$role = $this->model->byUuid($uuid)->firstOrFail();
106+
$role->delete();
107107
return $this->response->noContent();
108108
}
109109
}

0 commit comments

Comments
 (0)