{"action":"opened","issue":{"url":"https://api.github.com/repos/dingo/api/issues/713","labels_url":"https://api.github.com/repos/dingo/api/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/dingo/api/issues/713/comments","events_url":"https://api.github.com/repos/dingo/api/issues/713/events","html_url":"https://github.com/dingo/api/issues/713","id":115145924,"number":713,"title":"Route parameter constraints","user":{"login":"pengyuanzhao","id":7945666,"avatar_url":"https://avatars.githubusercontent.com/u/7945666?v=3","gravatar_id":"","url":"https://api.github.com/users/pengyuanzhao","html_url":"https://github.com/pengyuanzhao","followers_url":"https://api.github.com/users/pengyuanzhao/followers","following_url":"https://api.github.com/users/pengyuanzhao/following{/other_user}","gists_url":"https://api.github.com/users/pengyuanzhao/gists{/gist_id}","starred_url":"https://api.github.com/users/pengyuanzhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pengyuanzhao/subscriptions","organizations_url":"https://api.github.com/users/pengyuanzhao/orgs","repos_url":"https://api.github.com/users/pengyuanzhao/repos","events_url":"https://api.github.com/users/pengyuanzhao/events{/privacy}","received_events_url":"https://api.github.com/users/pengyuanzhao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T20:56:12Z","updated_at":"2015-11-04T20:56:12Z","closed_at":null,"body":"In Laravel, we can set the route parameter using where method:\r\n\r\nRoute::get('user/{name}', 'UserController@show')->where('name', '[A-Za-z]+');\r\n\r\nHow to do this in Dingo API? \r\n\r\nThanks!"}}