{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/6939","labels_url":"https://api.github.com/repos/laravel/framework/issues/6939/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/6939/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/6939/events","html_url":"https://github.com/laravel/framework/issues/6939","id":53643626,"number":6939,"title":"[Proposal] [5.0] Route group naming (as)","user":{"login":"iWader","id":2007548,"avatar_url":"https://avatars.githubusercontent.com/u/2007548?v=3","gravatar_id":"","url":"https://api.github.com/users/iWader","html_url":"https://github.com/iWader","followers_url":"https://api.github.com/users/iWader/followers","following_url":"https://api.github.com/users/iWader/following{/other_user}","gists_url":"https://api.github.com/users/iWader/gists{/gist_id}","starred_url":"https://api.github.com/users/iWader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iWader/subscriptions","organizations_url":"https://api.github.com/users/iWader/orgs","repos_url":"https://api.github.com/users/iWader/repos","events_url":"https://api.github.com/users/iWader/events{/privacy}","received_events_url":"https://api.github.com/users/iWader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-07T15:27:55Z","updated_at":"2015-01-07T15:36:58Z","closed_at":null,"body":"It would be good to be able to name groups of routes, similar to how the prefix works. Not sure if this is an existing thing in L4, but L5 seems to throw an error when attempting this currently.\r\n\r\nI'm happy to create a PR either way, if it needs fixing or implementing (if the proposal is accepted).\r\n\r\n```\r\nRoute::group(['as' => 'admin'], function() {\r\n    Route::get('/home', ['as' => 'index']);\r\n\r\n    Route::group(['as' => 'foo'], function()\r\n    {\r\n        Route::get('/test', ['as' => 'bar']);\r\n    }\r\n});\r\n```\r\n\r\nThis would produce the /home route named admin.index and /test as admin.foo.bar"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/69038743","html_url":"https://github.com/laravel/framework/issues/6939#issuecomment-69038743","issue_url":"https://api.github.com/repos/laravel/framework/issues/6939","id":69038743,"user":{"login":"crynobone","id":172966,"avatar_url":"https://avatars.githubusercontent.com/u/172966?v=3","gravatar_id":"","url":"https://api.github.com/users/crynobone","html_url":"https://github.com/crynobone","followers_url":"https://api.github.com/users/crynobone/followers","following_url":"https://api.github.com/users/crynobone/following{/other_user}","gists_url":"https://api.github.com/users/crynobone/gists{/gist_id}","starred_url":"https://api.github.com/users/crynobone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crynobone/subscriptions","organizations_url":"https://api.github.com/users/crynobone/orgs","repos_url":"https://api.github.com/users/crynobone/repos","events_url":"https://api.github.com/users/crynobone/events{/privacy}","received_events_url":"https://api.github.com/users/crynobone/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T15:36:58Z","updated_at":"2015-01-07T15:36:58Z","body":"Similar to #3000 proposal "}}