{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/10561","labels_url":"https://api.github.com/repos/laravel/framework/issues/10561/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10561/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/10561/events","html_url":"https://github.com/laravel/framework/issues/10561","id":111006928,"number":10561,"title":"Route::when() for Middleware","user":{"login":"brazorf","id":3330031,"avatar_url":"https://avatars.githubusercontent.com/u/3330031?v=3","gravatar_id":"","url":"https://api.github.com/users/brazorf","html_url":"https://github.com/brazorf","followers_url":"https://api.github.com/users/brazorf/followers","following_url":"https://api.github.com/users/brazorf/following{/other_user}","gists_url":"https://api.github.com/users/brazorf/gists{/gist_id}","starred_url":"https://api.github.com/users/brazorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brazorf/subscriptions","organizations_url":"https://api.github.com/users/brazorf/orgs","repos_url":"https://api.github.com/users/brazorf/repos","events_url":"https://api.github.com/users/brazorf/events{/privacy}","received_events_url":"https://api.github.com/users/brazorf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-12T16:11:33Z","updated_at":"2015-12-04T10:37:54Z","closed_at":"2015-10-12T17:08:05Z","body":"In L4 we were able to set filters for single route patterns,i.e. `Route::when('api', 'filter');`\r\n\r\nNow with L5 we can apply Middleware  to single routes, route groups, or all http requests but seems like we are not able to select url patterns. \r\n\r\nIs there any way to achieve this? Or is it a planned feature?"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/161933377","html_url":"https://github.com/laravel/framework/issues/10561#issuecomment-161933377","issue_url":"https://api.github.com/repos/laravel/framework/issues/10561","id":161933377,"user":{"login":"sebastiaanluca","id":711940,"avatar_url":"https://avatars.githubusercontent.com/u/711940?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastiaanluca","html_url":"https://github.com/sebastiaanluca","followers_url":"https://api.github.com/users/sebastiaanluca/followers","following_url":"https://api.github.com/users/sebastiaanluca/following{/other_user}","gists_url":"https://api.github.com/users/sebastiaanluca/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastiaanluca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastiaanluca/subscriptions","organizations_url":"https://api.github.com/users/sebastiaanluca/orgs","repos_url":"https://api.github.com/users/sebastiaanluca/repos","events_url":"https://api.github.com/users/sebastiaanluca/events{/privacy}","received_events_url":"https://api.github.com/users/sebastiaanluca/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T10:37:53Z","updated_at":"2015-12-04T10:37:53Z","body":"@GrahamCampbell Where to request or discuss a new feature? I was also searching for an answer to why this was deprecated. Filters got replaced by middleware, but I see no reason to remove this route pattern (and even URI regex) feature. Desperately need this."}}