vendredi 23 juin 2017

Laravel limit some string param to route

Is that possible to make route that accept string parameter only for specific string? Example :

Route::get('{user_tipe}/event', 'admin\EventC@index');

That the route, I want to make the user_tipe param is only allow to two string like admin and author. Is that possible?



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

Aucun commentaire:

Enregistrer un commentaire