mardi 4 juillet 2017

Laravel group routing with parameter

I have this group in my route: }

Route::group(['prefix' => 'v1/en'], function() {}

is it possible to change the 'en' segment uri in a parameter, so it can be changed depending on the request? Something like this:

Route::group(['prefix' => 'v1/{lang}'], function() {}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire