Support the ongoing development of Laravel.io →
posted 9 years ago
Blade

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?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

CrowdForge crowdforge Joined 18 Aug 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.