refactor: conditionally execute user and student seeders based on application environment
This commit is contained in:
parent
482cb9bd07
commit
050559048f
@ -14,6 +14,13 @@ class DatabaseSeeder extends Seeder
|
|||||||
*/
|
*/
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
|
if (! app()->isLocal()) {
|
||||||
|
$this->call([
|
||||||
|
ShieldSeeder::class,
|
||||||
|
CourseSeeder::class,
|
||||||
|
CourseScheduleSeeder::class,
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
$this->call([
|
$this->call([
|
||||||
ShieldSeeder::class,
|
ShieldSeeder::class,
|
||||||
UserSeeder::class,
|
UserSeeder::class,
|
||||||
@ -23,3 +30,4 @@ public function run(): void
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user