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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community