Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HamsiKafalu's avatar

(5.4) session config issue !

Hello all i am using laravel since 5.0, and i have never seen a strange issue like this before

when a change the session driver to 'database' and when i debug the config file ( dd(config('session')); to make sure it's set to database, but it still stays on the default session storage ( file )

laravel is somehow not reading my config..

can anyone help pls

0 likes
3 replies
SaeedPrez's avatar

Hi @rpauwels, try php artisan cache:clear and if that doesn't solve it, composer dump-autoload

1 like
HamsiKafalu's avatar

@SaeedPrez it's fixed, the issue was because i had my timezone wrong it was

'timezone'        => 'Europe\Brussels',

instead of

'timezone'        => 'Europe/Brussels',
1 like

Please or to participate in this conversation.