laravel get locale in controller code example
Example 1: laravel app get locale
App::getLocale();
Example 2: laravel get default locale
$defaultLocale = config('app.locale');
Example 3: laravel translation tag
{{ __(‘The Web Tier’) }}
App::getLocale();
$defaultLocale = config('app.locale');
{{ __(‘The Web Tier’) }}