{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11035","labels_url":"https://api.github.com/repos/laravel/framework/issues/11035/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11035/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11035/events","html_url":"https://github.com/laravel/framework/issues/11035","id":117894490,"number":11035,"title":"Routes use wrong controller when correct namespace is set, but controller name is same as elsewhere","user":{"login":"afraca","id":244807,"avatar_url":"https://avatars.githubusercontent.com/u/244807?v=3","gravatar_id":"","url":"https://api.github.com/users/afraca","html_url":"https://github.com/afraca","followers_url":"https://api.github.com/users/afraca/followers","following_url":"https://api.github.com/users/afraca/following{/other_user}","gists_url":"https://api.github.com/users/afraca/gists{/gist_id}","starred_url":"https://api.github.com/users/afraca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afraca/subscriptions","organizations_url":"https://api.github.com/users/afraca/orgs","repos_url":"https://api.github.com/users/afraca/repos","events_url":"https://api.github.com/users/afraca/events{/privacy}","received_events_url":"https://api.github.com/users/afraca/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T19:54:30Z","updated_at":"2015-11-19T20:04:14Z","closed_at":"2015-11-19T20:04:14Z","body":"Suppose we have \r\n\r\n`App\\Http\\Controllers\\FooController`\r\n\r\nand \r\n\r\n`Somewhere\\Else\\FooController`\r\n\r\nThen this route will trigger an exception saying App\\Http\\Controllers\\FooController@quiz is not defined:\r\n\r\n`Route::get('bar', ['namespace' => 'Somewhere\\Else', 'uses' => 'FooController@quiz'])` \r\n\r\nI verified this was not because of overwriting routes elsewhere. However, in another routefile this was included:\r\n\r\n`Route::get('__', ['namespace' => 'App\\Http\\Controllers', 'uses' => 'FooController@__'])` \r\n\r\nAdditionally, and this is quite interesting, when we wrap the first route definition in a route group with the namespace set it works fine...."}}