From 375b7c6a43a41652f1ba05ea661dea873bbef514 Mon Sep 17 00:00:00 2001 From: Danijel K Date: Sat, 25 Aug 2018 18:44:30 +0200 Subject: [PATCH] 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 @@ return [ | */ - 'connection' => null, + 'connection' => env('SESSION_CONNECTION', null), /* |-------------------------------------------------------------------------- @@ -96,7 +96,7 @@ return [ | */ - 'store' => null, + 'store' => env('SESSION_CONNECTION', null), /* |--------------------------------------------------------------------------