Create get all roles method

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2026-01-13 23:46:08 +01:00
parent 797887b23d
commit dd2a0bc333
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ class UserController extends Controller
$user->role = $request['role'];
$user->save();
$role = GetRole::getRole($request['role']);
$role = \App\Services\GetRole::getRole($request['role']);
$notification = Notification::create([
'content' => "Votre rôle à changé pour {$role} !",
]);