mercredi 20 janvier 2016

Laravel routes with not specified number of arguments

I created website where site admin can create new taxonomy terms, rearange them and hierarchize at his will. My question is therefore this: Is there any way, how to handle route with not specified number of arguments?

I am STRONGLY against manual solutions like this:

Route::get('/{term1?}/{term2?}/{term3?}/{term4?}/{term5?}', "controler@handle");



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire