SinghWithLaravel
3 months ago
471
6
Laravel

I want to validate route parameter to be one of the two given values, How can i do it ?

Posted 3 months ago by SinghWithLaravel
route::post('InspectionChecks/List/{type}', '[email protected]');

In above route, i want type to be either ASSETor TRAILER. How can we achieve it without going to the controller ?

Please sign in or create an account to participate in this conversation.