How to fetch current selected locale on a config file which is located inside config folder? Actually im using a custom file called frontend-assets.php for all frontend assets at config->frontend-assets.php which is a config file similar to config->asgard->core->core.php which has all the admin assets. In the frontend-assets.php i want to fetch the current selected locale on the site. app()->getLocale() always gives me the site default locale but i want the current selected locale.
Posts made by naveenv1985
Fetch current selected locale in a config file