laravel make text global code example
Example: laravel lang file for global string
/resources
/lang
/en
messages.php
/es
messages.php
1. Inside messages.php
return [
'welcome' => 'Welcome to our application',
];
2. To access the lang message
{{ __('messages.welcome') }}
-----------OR----------------
@lang('messages.welcome')