Enable session security measures and set the cookie name using a .env variable

This commit is contained in:
Kevin MacMartin 2015-12-01 00:00:45 -05:00
parent 7f04d74047
commit ae031fd488
2 changed files with 5 additions and 3 deletions

View file

@ -8,6 +8,8 @@ DB_DATABASE=hypothetical
DB_USERNAME=homestead DB_USERNAME=homestead
DB_PASSWORD=secret DB_PASSWORD=secret
COOKIE_NAME=hypothetical
CACHE_DRIVER=file CACHE_DRIVER=file
SESSION_DRIVER=file SESSION_DRIVER=file
QUEUE_DRIVER=sync QUEUE_DRIVER=sync

View file

@ -44,7 +44,7 @@ return [
| |
*/ */
'encrypt' => false, 'encrypt' => true,
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -109,7 +109,7 @@ return [
| |
*/ */
'cookie' => 'laravel_session', 'cookie' => env('COOKIE_NAME', 'hypothetical'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -148,6 +148,6 @@ return [
| |
*/ */
'secure' => false, 'secure' => true,
]; ];