Of course if you are using the Blade templating engine, you may use the {{ }} syntax to echo the translation string or use the @lang directive:{{ __('messages.welcome') }} @lang('messages.welcome')
Configuring The Locale
The default language for your application is stored in the config/app.php configuration file. Of course, you may modify this value to suit the needs of your application. You may also change the active language at runtime using the setLocale method on the App facade:Route::get('welcome/{locale}', function ($locale) { App::setLocale($locale); // });