add user admin with DatabaseSeeder.php
This commit is contained in:
parent
1e3228e8b3
commit
306d73ff23
|
@ -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
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue