From 84072ceb7406913aaf783dcebe173ce1681d25ed Mon Sep 17 00:00:00 2001 From: Gummibeer Date: Wed, 24 Jul 2019 09:41:20 +0200 Subject: [PATCH] fix default database connection env var --- CHANGELOG.md | 6 +++++- config/activitylog.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 459ce2ee..a5759a34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,13 @@ All notable changes to `spatie/laravel-activitylog` will be documented in this file +## 3.7.1 - 2019-07-24 + +- fix default database connection env var + ## 3.7.0 - 2019-07-23 -- add database connection to configuration [#568](https://github.com/spatie/laravel-activitylog/pull/568) +- add database connection to configuration `activitylog.database_connection` and `ACTIVITY_LOGGER_DB_CONNECTION` env var [#568](https://github.com/spatie/laravel-activitylog/pull/568) ## 3.6.3 - 2019-07-23 diff --git a/config/activitylog.php b/config/activitylog.php index 3b664ae0..13b78452 100644 --- a/config/activitylog.php +++ b/config/activitylog.php @@ -47,5 +47,5 @@ * This is the database connection that will be used by the migration and * the Activity model shipped with this package. */ - 'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION', 'mysql'), + 'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION', env('DB_CONNECTION', 'mysql')), ];