Support the ongoing development of →
Configuration Session Installation
Last updated 2 years ago.

You can't use that in configs. The configs are loaded way before the session is available or even before vital parts of the system have been bootstrapped.

You can set the config value at run time though config('app.locale', session('locale')); after you access to the session, if needed.

Last updated 7 years ago.

Sign in to participate in this thread!


Your banner here too?

aghict aghict Joined 1 Apr 2016


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.