File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ class DatabaseSeeder extends Seeder
1212 *
1313 * @return void
1414 */
15- public function run ()
15+ public function run (): void
1616 {
17- $ this ->call ([
18- // add seeder classes here
19- // DefaultUserSeeder::class,
20- ]);
17+ if (!$ this ->container ->isProduction ()) {
18+ $ this ->call ([DevSeeder::class]);
19+ } else {
20+ $ this ->call ([ProdSeeder::class]);
21+ }
2122 }
2223}
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ class UserSeeder extends Seeder
1414 */
1515 public function run (): void
1616 {
17- $ targetCount = 100 ;
18-
19- if (User::count () < $ targetCount ) {
20- User::factory ()->count ($ targetCount )->create ();
21- }
17+ User::factory ()->count (100 )->create ();
2218 }
2319}
You can’t perform that action at this time.
0 commit comments