{"action":"closed","number":14946,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/14946","id":82253406,"html_url":"https://github.com/laravel/framework/pull/14946","diff_url":"https://github.com/laravel/framework/pull/14946.diff","patch_url":"https://github.com/laravel/framework/pull/14946.patch","issue_url":"https://api.github.com/repos/laravel/framework/issues/14946","number":14946,"state":"closed","locked":false,"title":"[5.3] fire Authenticated event whenever $guard->setUser() is called","user":{"login":"tomschlick","id":70184,"avatar_url":"https://avatars.githubusercontent.com/u/70184?v=3","gravatar_id":"","url":"https://api.github.com/users/tomschlick","html_url":"https://github.com/tomschlick","followers_url":"https://api.github.com/users/tomschlick/followers","following_url":"https://api.github.com/users/tomschlick/following{/other_user}","gists_url":"https://api.github.com/users/tomschlick/gists{/gist_id}","starred_url":"https://api.github.com/users/tomschlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomschlick/subscriptions","organizations_url":"https://api.github.com/users/tomschlick/orgs","repos_url":"https://api.github.com/users/tomschlick/repos","events_url":"https://api.github.com/users/tomschlick/events{/privacy}","received_events_url":"https://api.github.com/users/tomschlick/received_events","type":"User","site_admin":false},"body":"Related to #14834\r\n\r\nThere needs to be a way to tell when an authenticated user has been set in the request. Currently the Login event only records actual logins via form or when a remember_me token is used to setup a new session. Current session authentications have no events fired at all.\r\n\r\nThis new `Authenticated` event fires on every request as soon as the user is set in the auth guard allowing you to listen for that event and execute code that depends on the user being authenticated.\r\n\r\nI can add the relevant docs if/when this is accepted.","created_at":"2016-08-22T20:03:04Z","updated_at":"2016-08-22T21:08:45Z","closed_at":"2016-08-22T21:08:45Z","merged_at":"2016-08-22T21:08:45Z","merge_commit_sha":"ad899c234b4adcbc848d0263470e8685f239ebf8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/laravel/framework/pulls/14946/commits","review_comments_url":"https://api.github.com/repos/laravel/framework/pulls/14946/comments","review_comment_url":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/framework/issues/14946/comments","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/6b4e84f10d2f07dddac2155a80669b4525efe681","head":{"label":"tomschlick:authenticated-event","ref":"authenticated-event","sha":"6b4e84f10d2f07dddac2155a80669b4525efe681","user":{"login":"tomschlick","id":70184,"avatar_url":"https://avatars.githubusercontent.com/u/70184?v=3","gravatar_id":"","url":"https://api.github.com/users/tomschlick","html_url":"https://github.com/tomschlick","followers_url":"https://api.github.com/users/tomschlick/followers","following_url":"https://api.github.com/users/tomschlick/following{/other_user}","gists_url":"https://api.github.com/users/tomschlick/gists{/gist_id}","starred_url":"https://api.github.com/users/tomschlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomschlick/subscriptions","organizations_url":"https://api.github.com/users/tomschlick/orgs","repos_url":"https://api.github.com/users/tomschlick/repos","events_url":"https://api.github.com/users/tomschlick/events{/privacy}","received_events_url":"https://api.github.com/users/tomschlick/received_events","type":"User","site_admin":false},"repo":{"id":28211128,"name":"framework","full_name":"tomschlick/framework","owner":{"login":"tomschlick","id":70184,"avatar_url":"https://avatars.githubusercontent.com/u/70184?v=3","gravatar_id":"","url":"https://api.github.com/users/tomschlick","html_url":"https://github.com/tomschlick","followers_url":"https://api.github.com/users/tomschlick/followers","following_url":"https://api.github.com/users/tomschlick/following{/other_user}","gists_url":"https://api.github.com/users/tomschlick/gists{/gist_id}","starred_url":"https://api.github.com/users/tomschlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomschlick/subscriptions","organizations_url":"https://api.github.com/users/tomschlick/orgs","repos_url":"https://api.github.com/users/tomschlick/repos","events_url":"https://api.github.com/users/tomschlick/events{/privacy}","received_events_url":"https://api.github.com/users/tomschlick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomschlick/framework","description":"","fork":true,"url":"https://api.github.com/repos/tomschlick/framework","forks_url":"https://api.github.com/repos/tomschlick/framework/forks","keys_url":"https://api.github.com/repos/tomschlick/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomschlick/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomschlick/framework/teams","hooks_url":"https://api.github.com/repos/tomschlick/framework/hooks","issue_events_url":"https://api.github.com/repos/tomschlick/framework/issues/events{/number}","events_url":"https://api.github.com/repos/tomschlick/framework/events","assignees_url":"https://api.github.com/repos/tomschlick/framework/assignees{/user}","branches_url":"https://api.github.com/repos/tomschlick/framework/branches{/branch}","tags_url":"https://api.github.com/repos/tomschlick/framework/tags","blobs_url":"https://api.github.com/repos/tomschlick/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomschlick/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomschlick/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomschlick/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomschlick/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/tomschlick/framework/languages","stargazers_url":"https://api.github.com/repos/tomschlick/framework/stargazers","contributors_url":"https://api.github.com/repos/tomschlick/framework/contributors","subscribers_url":"https://api.github.com/repos/tomschlick/framework/subscribers","subscription_url":"https://api.github.com/repos/tomschlick/framework/subscription","commits_url":"https://api.github.com/repos/tomschlick/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomschlick/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomschlick/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomschlick/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomschlick/framework/contents/{+path}","compare_url":"https://api.github.com/repos/tomschlick/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomschlick/framework/merges","archive_url":"https://api.github.com/repos/tomschlick/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomschlick/framework/downloads","issues_url":"https://api.github.com/repos/tomschlick/framework/issues{/number}","pulls_url":"https://api.github.com/repos/tomschlick/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/tomschlick/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/tomschlick/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomschlick/framework/labels{/name}","releases_url":"https://api.github.com/repos/tomschlick/framework/releases{/id}","deployments_url":"https://api.github.com/repos/tomschlick/framework/deployments","created_at":"2014-12-19T02:36:04Z","updated_at":"2016-07-10T23:48:53Z","pushed_at":"2016-08-22T20:18:38Z","git_url":"git://github.com/tomschlick/framework.git","ssh_url":"git@github.com:tomschlick/framework.git","clone_url":"https://github.com/tomschlick/framework.git","svn_url":"https://github.com/tomschlick/framework","homepage":"http://laravel.com","size":23483,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"5.2"}},"base":{"label":"laravel:5.3","ref":"5.3","sha":"04078381eca287365f553e74552d0ec2e36e7169","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":7548986,"name":"framework","full_name":"laravel/framework","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/framework","description":"","fork":false,"url":"https://api.github.com/repos/laravel/framework","forks_url":"https://api.github.com/repos/laravel/framework/forks","keys_url":"https://api.github.com/repos/laravel/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/framework/teams","hooks_url":"https://api.github.com/repos/laravel/framework/hooks","issue_events_url":"https://api.github.com/repos/laravel/framework/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/framework/events","assignees_url":"https://api.github.com/repos/laravel/framework/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/framework/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/framework/tags","blobs_url":"https://api.github.com/repos/laravel/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/framework/languages","stargazers_url":"https://api.github.com/repos/laravel/framework/stargazers","contributors_url":"https://api.github.com/repos/laravel/framework/contributors","subscribers_url":"https://api.github.com/repos/laravel/framework/subscribers","subscription_url":"https://api.github.com/repos/laravel/framework/subscription","commits_url":"https://api.github.com/repos/laravel/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/framework/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/framework/merges","archive_url":"https://api.github.com/repos/laravel/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/framework/downloads","issues_url":"https://api.github.com/repos/laravel/framework/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/framework/labels{/name}","releases_url":"https://api.github.com/repos/laravel/framework/releases{/id}","deployments_url":"https://api.github.com/repos/laravel/framework/deployments","created_at":"2013-01-10T21:27:28Z","updated_at":"2016-08-22T21:03:25Z","pushed_at":"2016-08-22T21:08:46Z","git_url":"git://github.com/laravel/framework.git","ssh_url":"git@github.com:laravel/framework.git","clone_url":"https://github.com/laravel/framework.git","svn_url":"https://github.com/laravel/framework","homepage":"http://laravel.com","size":49960,"stargazers_count":5788,"watchers_count":5788,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3357,"mirror_url":null,"open_issues_count":202,"forks":3357,"open_issues":202,"watchers":5788,"default_branch":"5.2"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/14946"},"html":{"href":"https://github.com/laravel/framework/pull/14946"},"issue":{"href":"https://api.github.com/repos/laravel/framework/issues/14946"},"comments":{"href":"https://api.github.com/repos/laravel/framework/issues/14946/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/framework/pulls/14946/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/framework/pulls/14946/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/framework/statuses/6b4e84f10d2f07dddac2155a80669b4525efe681"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":0,"review_comments":0,"commits":2,"additions":59,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"taylorotwell"}}