diff --git a/composer.json b/composer.json index 052e322..d116adf 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fleetbase/core-api", - "version": "1.0.5-alpha", + "version": "1.0.6-alpha", "description": "Core Framework and Resources for Fleetbase API", "keywords": [ "fleetbase", diff --git a/src/Providers/CoreServiceProvider.php b/src/Providers/CoreServiceProvider.php index 981c357..2103629 100644 --- a/src/Providers/CoreServiceProvider.php +++ b/src/Providers/CoreServiceProvider.php @@ -8,6 +8,7 @@ use Laravel\Cashier\Cashier; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Arr; +use Illuminate\Support\Facades\Schema; use Illuminate\Http\Resources\Json\JsonResource; /** @@ -102,6 +103,11 @@ public function boot() */ public function mergeConfigFromSettings() { + // Check if the settings table exists + if (!Schema::hasTable('settings')) { + return; + } + $putsenv = [ 'services.aws' => ['key' => 'AWS_ACCESS_KEY_ID', 'secret' => 'AWS_SECRET_ACCESS_KEY', 'region' => 'AWS_DEFAULT_REGION'], 'services.google_maps' => ['api_key' => 'GOOGLE_MAPS_API_KEY', 'locale' => 'GOOGLE_MAPS_LOCALE'],