Skip to content

Commit 084f100

Browse files
committed
Load config.session.lifetime from env file
1 parent 691fdfe commit 084f100

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.env.example

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ DB_PASSWORD=secret
1515
BROADCAST_DRIVER=log
1616
CACHE_DRIVER=file
1717
SESSION_DRIVER=file
18+
SESSION_LIFETIME=120
1819
QUEUE_DRIVER=sync
1920

2021
REDIS_HOST=127.0.0.1

config/session.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
|
3030
*/
3131

32-
'lifetime' => 120,
32+
'lifetime' => env('SESSION_LIFETIME', 120),
3333

3434
'expire_on_close' => false,
3535

0 commit comments

Comments
 (0)