{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/13638","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/13638/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/13638/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/13638/events","html_url":"https://github.com/laravel/framework/pull/13638","id":156083569,"number":13638,"title":"[5.2] Resolve user in request with token driver","user":{"login":"tlaverdure","id":1731025,"avatar_url":"https://avatars.githubusercontent.com/u/1731025?v=3","gravatar_id":"","url":"https://api.github.com/users/tlaverdure","html_url":"https://github.com/tlaverdure","followers_url":"https://api.github.com/users/tlaverdure/followers","following_url":"https://api.github.com/users/tlaverdure/following{/other_user}","gists_url":"https://api.github.com/users/tlaverdure/gists{/gist_id}","starred_url":"https://api.github.com/users/tlaverdure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlaverdure/subscriptions","organizations_url":"https://api.github.com/users/tlaverdure/orgs","repos_url":"https://api.github.com/users/tlaverdure/repos","events_url":"https://api.github.com/users/tlaverdure/events{/privacy}","received_events_url":"https://api.github.com/users/tlaverdure/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-21T04:43:15Z","updated_at":"2016-05-23T13:29:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/13638","html_url":"https://github.com/laravel/framework/pull/13638","diff_url":"https://github.com/laravel/framework/pull/13638.diff","patch_url":"https://github.com/laravel/framework/pull/13638.patch"},"body":"Allows identifying a user with the token guard using `$request->user();`"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/220980163","html_url":"https://github.com/laravel/framework/pull/13638#issuecomment-220980163","issue_url":"https://api.github.com/repos/laravel/framework/issues/13638","id":220980163,"user":{"login":"tlaverdure","id":1731025,"avatar_url":"https://avatars.githubusercontent.com/u/1731025?v=3","gravatar_id":"","url":"https://api.github.com/users/tlaverdure","html_url":"https://github.com/tlaverdure","followers_url":"https://api.github.com/users/tlaverdure/followers","following_url":"https://api.github.com/users/tlaverdure/following{/other_user}","gists_url":"https://api.github.com/users/tlaverdure/gists{/gist_id}","starred_url":"https://api.github.com/users/tlaverdure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlaverdure/subscriptions","organizations_url":"https://api.github.com/users/tlaverdure/orgs","repos_url":"https://api.github.com/users/tlaverdure/repos","events_url":"https://api.github.com/users/tlaverdure/events{/privacy}","received_events_url":"https://api.github.com/users/tlaverdure/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T13:29:07Z","updated_at":"2016-05-23T13:29:07Z","body":"Yes it does does work in most cases. This is actually particular to the BroadcastController in 5.3 (https://github.com/laravel/framework/blob/master/src/Illuminate/Broadcasting/BroadcastController.php#L20). I'm not getting a user instance from the request even though I'm using the auth:api middleware in my BroadcastServiceProvider.\r\n\r\n```php\r\nBroadcast::route(['middleware' => ['auth:api']]);\r\n```\r\n\r\n"}}
{"actor":{"display_login":"tlaverdure"}}