{"action":"created","issue":{"url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/80","repository_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions","labels_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/80/comments","events_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/80/events","html_url":"https://github.com/GrahamCampbell/Laravel-Exceptions/issues/80","id":173009127,"number":80,"title":"Whoops page when AuthenticationException is thrown in laravel 5.3","user":{"login":"scrubmx","id":2574295,"avatar_url":"https://avatars.githubusercontent.com/u/2574295?v=3","gravatar_id":"","url":"https://api.github.com/users/scrubmx","html_url":"https://github.com/scrubmx","followers_url":"https://api.github.com/users/scrubmx/followers","following_url":"https://api.github.com/users/scrubmx/following{/other_user}","gists_url":"https://api.github.com/users/scrubmx/gists{/gist_id}","starred_url":"https://api.github.com/users/scrubmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrubmx/subscriptions","organizations_url":"https://api.github.com/users/scrubmx/orgs","repos_url":"https://api.github.com/users/scrubmx/repos","events_url":"https://api.github.com/users/scrubmx/events{/privacy}","received_events_url":"https://api.github.com/users/scrubmx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"assignees":[{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-24T17:14:08Z","updated_at":"2016-08-30T17:10:09Z","closed_at":"2016-08-30T15:59:22Z","body":"There is an issue with new laravel 5.3 apps.\r\n\r\nThe new auth middleware `Illuminate\\Auth\\Middleware\\Authenticate` throws an `AuthenticationException` when the user is not logged in. The default exception handler handles this by calling the `unauthenticated` method in the `App\\Exceptions\\Handler`.\r\n\r\nhttps://github.com/laravel/framework/blob/5.3/src/Illuminate/Foundation/Exceptions/Handler.php#L135\r\n\r\nCurrently the `GrahamCampbell\\Exceptions\\NewExceptionHandler` does not handle this Exception in any particular way and ends up displaying the whoops page.  \r\n\r\n**I made an example repo for reference:**\r\nhttps://github.com/scrubmx/issue-example/commits/master\r\n"},"comment":{"url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/comments/243510177","html_url":"https://github.com/GrahamCampbell/Laravel-Exceptions/issues/80#issuecomment-243510177","issue_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/80","id":243510177,"user":{"login":"petecoop","id":1655361,"avatar_url":"https://avatars.githubusercontent.com/u/1655361?v=3","gravatar_id":"","url":"https://api.github.com/users/petecoop","html_url":"https://github.com/petecoop","followers_url":"https://api.github.com/users/petecoop/followers","following_url":"https://api.github.com/users/petecoop/following{/other_user}","gists_url":"https://api.github.com/users/petecoop/gists{/gist_id}","starred_url":"https://api.github.com/users/petecoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petecoop/subscriptions","organizations_url":"https://api.github.com/users/petecoop/orgs","repos_url":"https://api.github.com/users/petecoop/repos","events_url":"https://api.github.com/users/petecoop/events{/privacy}","received_events_url":"https://api.github.com/users/petecoop/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T17:10:09Z","updated_at":"2016-08-30T17:10:09Z","body":"Is there a way to configure the priorities for this to work? Or is the only option doing as @scrubmx suggests above?\r\n\r\nWould it be a good idea for it to work out of the box? I came into this issue yesterday too, as by default Laravel has moved this into the `Exception\\Handler`. Previously my understanding of this package would be that I could simply replace the default handler and it work without causing any other issues, but now means making a change somewhere for it to not break default behaviour"}}
{"actor":{"display_login":"petecoop"}}