laravel lang with parameter code example
Example 1: laravel language helper
{{ __(‘The Web Tier’) }}
Example 2: laravel lang with parameter
'hello':'Hello :Name'
{!! __('messages.hello',['Name'=>'nairi']) !!}
output: Hello Nairi
{{ __(‘The Web Tier’) }}
'hello':'Hello :Name'
{!! __('messages.hello',['Name'=>'nairi']) !!}
output: Hello Nairi