I am working on a Multi Lingual Application in Laravel 5.4
template.blade.php
<title>@yield('title')</title>
Then in other pages, I am trying to set the tile dyamically based on user locale. It throws error when I try to use the following:
@section('title',{{ __("dashboard") }})
or
@section('title', @lang("dashboard"))
This is the error:
Parse error: syntax error, unexpected '<'
Can any one tell how to pass @lang
or __('')
as paramater in a @section()