diff --git a/src/Commands/SeedDeploymentDataCommand.php b/src/Commands/SeedDeploymentDataCommand.php index 4553fcfe..2d4088ef 100644 --- a/src/Commands/SeedDeploymentDataCommand.php +++ b/src/Commands/SeedDeploymentDataCommand.php @@ -25,11 +25,13 @@ public function handle(): void { if (!config('apiato.seeders.deployment')) { $this->error('No Deployment Seeder Found, Please Check Your Config File.'); + return; } if (!class_exists(config('apiato.seeders.deployment'))) { $this->error('Deployment Seeder Class Not Found.'); + return; } diff --git a/src/Commands/SeedTestingDataCommand.php b/src/Commands/SeedTestingDataCommand.php index 53641628..d843f5b6 100644 --- a/src/Commands/SeedTestingDataCommand.php +++ b/src/Commands/SeedTestingDataCommand.php @@ -25,11 +25,13 @@ public function handle(): void { if (!config('apiato.seeders.testing')) { $this->error('No Testing Seeder Found, Please Check Your Config File.'); + return; } if (!class_exists(config('apiato.seeders.testing'))) { $this->error('Testing Seeder Class Not Found.'); + return; } diff --git a/src/Providers/ApiatoServiceProvider.php b/src/Providers/ApiatoServiceProvider.php index 9ca45955..e225d198 100644 --- a/src/Providers/ApiatoServiceProvider.php +++ b/src/Providers/ApiatoServiceProvider.php @@ -35,7 +35,8 @@ public function register(): void $this->runLoaderRegister(); $this->mergeConfigFrom( - __DIR__ . '/../../config/apiato.php', 'apiato' + __DIR__ . '/../../config/apiato.php', + 'apiato', ); }