dingo / api

A RESTful API package for the Laravel and Lumen frameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ?

commented

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.