Support the ongoing development of Laravel.io →
posted 8 years ago
Configuration
Last updated 2 years ago.
0

What does App::getLocale() return in the controller?

Have you ever cached your config files? (If so, you'll need to re-cache them every time you make a change.)

0

tdhsmith said:

What does App::getLocale() return in the controller?

Have you ever cached your config files? (If so, you'll need to re-cache them every time you make a change.)

App::getLocale() return "en", means that no change. I had clear cache with php artisan cache:clear

0
Solution

@tdhsmith, thx, i tried another command

php artisan config:cache

that works, the default locale changes.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

cys cys Joined 21 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.

© 2024 Laravel.io - All rights reserved.