Browse Source

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.
Danijel K 5 years ago
parent
commit
375b7c6a43
1 changed files with 2 additions and 2 deletions
  1. 2 2
      config/session.php

+ 2 - 2
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),
 
     /*
     |--------------------------------------------------------------------------