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.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us