is there a way in Laravel 5 to have a recognized list of prefixes, such as ['gbr','en','eu'], so that
/gbr/bar/baz/shoelace // or
/eu/bar/baz/shoelace
is handled by the same controller@method as
/bar/baz/shoelace
Except that the additional parameter foo=gbr
is passed in the first condition?
Note the Route::group
prefix won't work because there may or may not be a prefix in this case. Also, this strategy should take precedence over all else, i.e. the Route would check for the (optional) prefix first.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l0T4Ec
via IFTTT
Aucun commentaire:
Enregistrer un commentaire