From 375b7c6a43a41652f1ba05ea661dea873bbef514 Mon Sep 17 00:00:00 2001 From: Danijel K Date: Sat, 25 Aug 2018 18:44:30 +0200 Subject: [PATCH 1/2] Extract core 2 session configurations to environment In the spirit of JMac & LaravelShift I've extracted 2 session variables to the environment file. Not 'just because' but rather that one is able to set SESSION_DRIVER to redis, but unable to set a connection without touching the core session config file. --- config/session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/session.php b/config/session.php index 736fb3c7..df96f1b9 100644 --- a/config/session.php +++ b/config/session.php @@ -70,7 +70,7 @@ | */ - 'connection' => null, + 'connection' => env('SESSION_CONNECTION', null), /* |-------------------------------------------------------------------------- @@ -96,7 +96,7 @@ | */ - 'store' => null, + 'store' => env('SESSION_CONNECTION', null), /* |-------------------------------------------------------------------------- From b9ac4417ee6153b8ef0daeaa8ffab433acd935dd Mon Sep 17 00:00:00 2001 From: Danijel K Date: Sat, 25 Aug 2018 18:45:33 +0200 Subject: [PATCH 2/2] corrected bad copy paste --- config/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/session.php b/config/session.php index df96f1b9..38829b77 100644 --- a/config/session.php +++ b/config/session.php @@ -96,7 +96,7 @@ | */ - 'store' => env('SESSION_CONNECTION', null), + 'store' => env('SESSION_STORE', null), /* |--------------------------------------------------------------------------