migrationSvc = app(MigrationService::class); $this->seederSvc = app(SeederService::class); } /** * Run the database seeds. * * @throws Exception */ public function run() { // Make sure any migrations that need to be run are run/cleared out if ($this->migrationSvc->migrationsAvailable()) { $this->migrationSvc->runAllMigrations(); } // Then sync all of the seeds $this->seederSvc->syncAllSeeds(); } }