Fix DatabaseSeeder to call specific seeders instead of using factories
This commit is contained in:
parent
5d9997d3a6
commit
f203bb03eb
1 changed files with 4 additions and 5 deletions
|
|
@ -15,11 +15,10 @@ class DatabaseSeeder extends Seeder
|
|||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// User::factory(10)->create();
|
||||
|
||||
User::factory()->create([
|
||||
'name' => 'Test User',
|
||||
'email' => 'test@example.com',
|
||||
// Call specific seeders instead of using factories
|
||||
$this->call([
|
||||
AdminSeeder::class,
|
||||
V1DataMigrationSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue