08-06-2023, 04:02 PM
I was trying to localize my application and in the middleware, I am getting the locale from the request object. Now I need to access this outside the controller while running a job.
As from the documentation, I can see that the app() can hold this data. But `app()->setLocale()` and `app()->getLocale()` is not working for me in lumen 5.6.
Ant help will be much appreciable.
As from the documentation, I can see that the app() can hold this data. But `app()->setLocale()` and `app()->getLocale()` is not working for me in lumen 5.6.
Ant help will be much appreciable.