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
|
public function run(): void
|
||||||
{
|
{
|
||||||
// User::factory(10)->create();
|
// Call specific seeders instead of using factories
|
||||||
|
$this->call([
|
||||||
User::factory()->create([
|
AdminSeeder::class,
|
||||||
'name' => 'Test User',
|
V1DataMigrationSeeder::class,
|
||||||
'email' => 'test@example.com',
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue