{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/10762","labels_url":"https://api.github.com/repos/laravel/framework/issues/10762/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10762/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/10762/events","html_url":"https://github.com/laravel/framework/pull/10762","id":114234892,"number":10762,"title":"[5.1] Change the exception the gate throws","user":{"login":"geodeveloper","id":6689915,"avatar_url":"https://avatars.githubusercontent.com/u/6689915?v=3","gravatar_id":"","url":"https://api.github.com/users/geodeveloper","html_url":"https://github.com/geodeveloper","followers_url":"https://api.github.com/users/geodeveloper/followers","following_url":"https://api.github.com/users/geodeveloper/following{/other_user}","gists_url":"https://api.github.com/users/geodeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/geodeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geodeveloper/subscriptions","organizations_url":"https://api.github.com/users/geodeveloper/orgs","repos_url":"https://api.github.com/users/geodeveloper/repos","events_url":"https://api.github.com/users/geodeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/geodeveloper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T09:48:22Z","updated_at":"2015-10-30T13:36:22Z","closed_at":"2015-10-30T13:36:22Z","pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/10762","html_url":"https://github.com/laravel/framework/pull/10762","diff_url":"https://github.com/laravel/framework/pull/10762.diff","patch_url":"https://github.com/laravel/framework/pull/10762.patch"},"body":"I've updated this file in order to throw the correct Exception which is UnauthorizedException on createGateUnauthorizedException method. Also this is useful in order to render a different response here: app/Exceptions/Handler.php"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/152527764","html_url":"https://github.com/laravel/framework/pull/10762#issuecomment-152527764","issue_url":"https://api.github.com/repos/laravel/framework/issues/10762","id":152527764,"user":{"login":"taylorotwell","id":463230,"avatar_url":"https://avatars.githubusercontent.com/u/463230?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorotwell","html_url":"https://github.com/taylorotwell","followers_url":"https://api.github.com/users/taylorotwell/followers","following_url":"https://api.github.com/users/taylorotwell/following{/other_user}","gists_url":"https://api.github.com/users/taylorotwell/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorotwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorotwell/subscriptions","organizations_url":"https://api.github.com/users/taylorotwell/orgs","repos_url":"https://api.github.com/users/taylorotwell/repos","events_url":"https://api.github.com/users/taylorotwell/events{/privacy}","received_events_url":"https://api.github.com/users/taylorotwell/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T13:36:22Z","updated_at":"2015-10-30T13:36:22Z","body":"This is updated in 5.2."}}