This commit is contained in:
2026-05-14 16:54:32 +00:00
parent 5b2a2e7ddb
commit 15fcbcc9eb
212 changed files with 18586 additions and 10360 deletions
+8 -6
View File
@@ -26,11 +26,13 @@ class DatabaseSeeder extends Seeder
$adminRole = Role::where('libelle', 'Admin')->first();
User::create([
'name' => 'AdminCESI',
'email' => 'admin@cesizen.fr',
'password' => Hash::make('okokokok'), // Toujours hacher !
'id_role' => $adminRole->id,
]);
User::firstOrCreate(
['email' => 'admin@cesizen.fr'],
[
'name' => 'AdminCESI',
'password' => Hash::make('okokokok'),
'id_role' => $adminRole->id,
]
);
}
}