add user admin with DatabaseSeeder.php

This commit is contained in:
AslanAV 2024-01-12 09:11:27 +03:00
parent 1e3228e8b3
commit 306d73ff23
1 changed files with 6 additions and 5 deletions

View File

@ -13,11 +13,12 @@ class DatabaseSeeder extends Seeder
*/
public function run(): void
{
// \App\Models\User::factory(10)->create();
\App\Models\User::factory(10)->create();
// \App\Models\User::factory()->create([
// 'name' => 'Test User',
// 'email' => 'test@example.com',
// ]);
\App\Models\User::factory()->create([
'name' => 'admin',
'email' => 'test@example.com',
'password' => 123456
]);
}
}