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 public function run(): void
{ {
// \App\Models\User::factory(10)->create(); \App\Models\User::factory(10)->create();
// \App\Models\User::factory()->create([ \App\Models\User::factory()->create([
// 'name' => 'Test User', 'name' => 'admin',
// 'email' => 'test@example.com', 'email' => 'test@example.com',
// ]); 'password' => 123456
]);
} }
} }