Skip to content

Commit

Permalink
Update databases key to use DB_CONNECTION from .env
Browse files Browse the repository at this point in the history
Utilizing `env('DB_CONNECTION')` enables the package to function seamlessly without requiring any adjustments to the `backup.php` configuration file. It automatically derives the database connection information from the corresponding environment variable, ensuring flexibility in database selection based on the environment.
  • Loading branch information
maskeynihal authored Sep 18, 2023
1 parent 31eba44 commit cc1d8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
* For a complete list of available customization options, see https://github.com/spatie/db-dumper
*/
'databases' => [
'mysql',
env('DB_CONNECTION', 'mysql'),
],
],

Expand Down

0 comments on commit cc1d8d0

Please sign in to comment.