Skip to content

Commit

Permalink
Add DB URL on configDbConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
zerossB authored Aug 20, 2024
1 parent b078461 commit adfea6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/iss-vendas.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'prefix' => env('MS_VENDAS_API_PREFIX', '/api'),

'db' => [
'url' => env('MS_VENDAS_DB_URL'),
'host' => env('MS_VENDAS_DB_HOST'),
'port' => env('MS_VENDAS_DB_PORT'),
'database' => env('MS_VENDAS_DB_DATABASE'),
Expand Down
1 change: 1 addition & 0 deletions src/Traits/UsesVendasDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ protected static function configDbConnection()
config([
'database.connections.iss-vendas' => [
'driver' => 'mysql',
'url' => config('iss-vendas.db.url'),
'host' => config('iss-vendas.db.host'),
'port' => config('iss-vendas.db.port'),
'database' => config('iss-vendas.db.database'),
Expand Down

0 comments on commit adfea6e

Please sign in to comment.