mardi 2 janvier 2018

Laravel: Print the current route, with a different parameter

Considering the following route group in Laravel 5:

Route::prefix('{locale}')->group(function () { // ... Other routes here });

All routes that are nested within this route group have views that extend a certain layout. Somewhere in this layout I loop all available locales in my application, and I put links to change to this locale. What would be the easiest way to print these links in my view, keeping the current route and possibly the other routes parameters, but changing only the {locale} parameter?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2EApPQK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire