Skip to content

Commit

Permalink
🔧 Improve the default session file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Feb 8, 2024
1 parent 313bf15 commit a70bead
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
|
*/

'files' => base_path('cache/sessions'),
'files' => config('app.env') === 'production'
? getcwd().'/cache/sessions'
: base_path('cache/sessions'),

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit a70bead

Please sign in to comment.