Skip to content

Commit

Permalink
bump to v1.0.6-alpha, hotfix mergeConfigFromSettings only execute i…
Browse files Browse the repository at this point in the history
…f migrations completed/ settings table exists
  • Loading branch information
roncodes committed Jun 9, 2023
1 parent 674dec0 commit 20890b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions src/Providers/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 20890b9

Please sign in to comment.