{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/15146","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/15146/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/15146/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/15146/events","html_url":"https://github.com/laravel/framework/issues/15146","id":173954501,"number":15146,"title":"Auth::routes() doesn't work when placed AFTER Route::resource()","user":{"login":"apocalyarts","id":837443,"avatar_url":"https://avatars.githubusercontent.com/u/837443?v=3","gravatar_id":"","url":"https://api.github.com/users/apocalyarts","html_url":"https://github.com/apocalyarts","followers_url":"https://api.github.com/users/apocalyarts/followers","following_url":"https://api.github.com/users/apocalyarts/following{/other_user}","gists_url":"https://api.github.com/users/apocalyarts/gists{/gist_id}","starred_url":"https://api.github.com/users/apocalyarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apocalyarts/subscriptions","organizations_url":"https://api.github.com/users/apocalyarts/orgs","repos_url":"https://api.github.com/users/apocalyarts/repos","events_url":"https://api.github.com/users/apocalyarts/events{/privacy}","received_events_url":"https://api.github.com/users/apocalyarts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T08:04:51Z","updated_at":"2016-08-30T09:54:31Z","closed_at":null,"body":"```\r\n//Example routes/web.php:\r\nRoute::resource('admin/group', 'Admin\\GroupAdminController');\r\nAuth::routes();\r\n```\r\n\r\nIt looks like Auth::routes() doesn't work as expected when placed AFTER a call of Route::resource() in the routes file. \r\n\r\nCalling php artisan route:list shows that except for the password reset routes no auth routes are generated anymore.\r\n\r\nPlacing Auth::routes() at the top of the file fixes the problem.\r\n\r\nIs this intended? If yes, I would consider it a really strong sid effect of Route::resource() that should be mentioned in the docs."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/243390713","html_url":"https://github.com/laravel/framework/issues/15146#issuecomment-243390713","issue_url":"https://api.github.com/repos/laravel/framework/issues/15146","id":243390713,"user":{"login":"KKSzymanowski","id":13980973,"avatar_url":"https://avatars.githubusercontent.com/u/13980973?v=3","gravatar_id":"","url":"https://api.github.com/users/KKSzymanowski","html_url":"https://github.com/KKSzymanowski","followers_url":"https://api.github.com/users/KKSzymanowski/followers","following_url":"https://api.github.com/users/KKSzymanowski/following{/other_user}","gists_url":"https://api.github.com/users/KKSzymanowski/gists{/gist_id}","starred_url":"https://api.github.com/users/KKSzymanowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KKSzymanowski/subscriptions","organizations_url":"https://api.github.com/users/KKSzymanowski/orgs","repos_url":"https://api.github.com/users/KKSzymanowski/repos","events_url":"https://api.github.com/users/KKSzymanowski/events{/privacy}","received_events_url":"https://api.github.com/users/KKSzymanowski/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T09:54:31Z","updated_at":"2016-08-30T09:54:31Z","body":"I'm using Laravel 5.3.4 and it doesn't matter where I put the `Auth::routes`, it generates correct set of routes:\r\n```\r\n+--------+-----------+--------------------------+---------------+------------------------------------------------------------------------+------------+\r\n| Domain | Method    | URI                      | Name          | Action                                                                 | Middleware |\r\n+--------+-----------+--------------------------+---------------+------------------------------------------------------------------------+------------+\r\n|        | POST      | admin/group              | group.store   | App\\Http\\Controllers\\Admin\\GroupAdminController@store                  | web        |\r\n|        | GET|HEAD  | admin/group              | group.index   | App\\Http\\Controllers\\Admin\\GroupAdminController@index                  | web        |\r\n|        | GET|HEAD  | admin/group/create       | group.create  | App\\Http\\Controllers\\Admin\\GroupAdminController@create                 | web        |\r\n|        | GET|HEAD  | admin/group/{group}      | group.show    | App\\Http\\Controllers\\Admin\\GroupAdminController@show                   | web        |\r\n|        | PUT|PATCH | admin/group/{group}      | group.update  | App\\Http\\Controllers\\Admin\\GroupAdminController@update                 | web        |\r\n|        | DELETE    | admin/group/{group}      | group.destroy | App\\Http\\Controllers\\Admin\\GroupAdminController@destroy                | web        |\r\n|        | GET|HEAD  | admin/group/{group}/edit | group.edit    | App\\Http\\Controllers\\Admin\\GroupAdminController@edit                   | web        |\r\n|        | POST      | login                    |               | App\\Http\\Controllers\\Auth\\LoginController@login                        | web,guest  |\r\n|        | GET|HEAD  | login                    | login         | App\\Http\\Controllers\\Auth\\LoginController@showLoginForm                | web,guest  |\r\n|        | POST      | logout                   |               | App\\Http\\Controllers\\Auth\\LoginController@logout                       | web        |\r\n|        | POST      | password/email           |               | App\\Http\\Controllers\\Auth\\ForgotPasswordController@sendResetLinkEmail  | web,guest  |\r\n|        | GET|HEAD  | password/reset           |               | App\\Http\\Controllers\\Auth\\ForgotPasswordController@showLinkRequestForm | web,guest  |\r\n|        | POST      | password/reset           |               | App\\Http\\Controllers\\Auth\\ResetPasswordController@reset                | web,guest  |\r\n|        | GET|HEAD  | password/reset/{token}   |               | App\\Http\\Controllers\\Auth\\ResetPasswordController@showResetForm        | web,guest  |\r\n|        | GET|HEAD  | register                 |               | App\\Http\\Controllers\\Auth\\RegisterController@showRegistrationForm      | web,guest  |\r\n|        | POST      | register                 |               | App\\Http\\Controllers\\Auth\\RegisterController@register                  | web,guest  |\r\n+--------+-----------+--------------------------+---------------+------------------------------------------------------------------------+------------+\r\n```\r\n\r\nCould you provide some reproducible example of this error?"}}
{"actor":{"display_login":"KKSzymanowski"}}