Route regular expression constraints
kevinklinegargar opened this issue · comments
Hi,
Dingo support Laravel route regular expression like in the stock Laravel ?
I can't find in Dingo docs, does have a plan to integrate this ?
Hi, if you're talking about what I think you're talking about - ie;
Route::pattern('paramName', 'regexp');
Then yes it does, and in fact even that syntax is exactly the same as Laravel Routing, so just put that for example in the boot method of your route service provider, and it should work.