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

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.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

aghict aghict Joined 1 Apr 2016

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.