mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
[9.x] Add specific test user in seeder (#5879)
* Update DatabaseSeeder.php * formatting Co-authored-by: Taylor Otwell <taylor@laravel.com>
This commit is contained in:
parent
14b6505bba
commit
5c5a300bfd
@ -15,5 +15,10 @@ class DatabaseSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
// \App\Models\User::factory(10)->create();
|
||||
|
||||
// \App\Models\User::factory()->create([
|
||||
// 'name' => 'Test User',
|
||||
// 'email' => 'test@example.com',
|
||||
// ]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user