so if I have a master blade named master.blade.php like such:
{{$app->getLocale()}}
@yield('content')
then I have a blade called test.blade.php
@extends('master')
@section('content')
{{$app->getLocale()}}
@endsection
And my locales are either en or es and the locale is currently set as es with en as the fallback, the above renders:
es
en
Why doesn't test get the locale right?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community