rename model in singular

This commit is contained in:
2026-03-13 15:30:54 +01:00
parent 928d504b27
commit 922b4df8b5
21 changed files with 42 additions and 47 deletions
+1 -2
View File
@@ -48,8 +48,7 @@ class UserController extends Controller
$notification = Notification::create([
'content' => "Nouvelle demande d'inscription : {$user->name} {$user->lastname}",
'user_id' => $user->id,
'content' => "Nouvelle demande d'inscription : {$user->name} {$user->lastname}"
]);
$admins = User::whereIn('role', [1, 2])->get();
$notification->users()->attach(