I have a multilingual site. Everything is working but I want routes to be in the locale language.
I've used:
Route::get('/'.Lang::get('routes.role'), function () {
return view('administration.role');
})->name(Lang::get('routes.role'));
So in spanish my route is "/perfil" and in english it's "/role", that works too if I set the language in config/app.php
The problem arises when, from any page, change the language, then the routes are not correct, because it changes the language for links but routes remain the same, preloaded.
How can I refresh routes.php when language changes?
I haven't see any cache for routes.
Thanks.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/24Zq9Q8
via IFTTT
Aucun commentaire:
Enregistrer un commentaire