{"action":"created","issue":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/782","repository_url":"https://api.github.com/repos/tymondesigns/jwt-auth","labels_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/782/comments","events_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/782/events","html_url":"https://github.com/tymondesigns/jwt-auth/issues/782","id":163329393,"number":782,"title":"ErrorException in RequestGuard.php when use JWTAuth::attempt($credentials)","user":{"login":"buihoang91tin","id":9276526,"avatar_url":"https://avatars.githubusercontent.com/u/9276526?v=3","gravatar_id":"","url":"https://api.github.com/users/buihoang91tin","html_url":"https://github.com/buihoang91tin","followers_url":"https://api.github.com/users/buihoang91tin/followers","following_url":"https://api.github.com/users/buihoang91tin/following{/other_user}","gists_url":"https://api.github.com/users/buihoang91tin/gists{/gist_id}","starred_url":"https://api.github.com/users/buihoang91tin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buihoang91tin/subscriptions","organizations_url":"https://api.github.com/users/buihoang91tin/orgs","repos_url":"https://api.github.com/users/buihoang91tin/repos","events_url":"https://api.github.com/users/buihoang91tin/events{/privacy}","received_events_url":"https://api.github.com/users/buihoang91tin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-07-01T06:40:43Z","updated_at":"2016-07-04T01:51:47Z","closed_at":null,"body":"First I have problem with \r\n\r\n> BindingResolutionException in Container.php line 752: Target [Illuminate\\Contracts\\Routing\\ResponseFactory] is not instantiable while building [Tymon\\JWTAuth\\Middleware\\GetUserFromToken]\r\n\r\nI try to add this code\r\n`$this->app->singleton('Illuminate\\Contracts\\Routing\\ResponseFactory', function ($app)\r\n        {\r\n            return new ResponseFactory($app['Illuminate\\Contracts\\View\\Factory'], $app['Illuminate\\Routing\\Redirector']);\r\n        });`\r\nIt's error Class Tymon\\JWTAuth\\Middleware\\ResponseFactory not found\r\n\r\nSo I try again to back and remove useless \"use\" of Interface like this [532](https://github.com/tymondesigns/jwt-auth/pull/532)\r\n\r\nNext when I try again, I see this error: Class Tymon\\JWTAuth\\Middleware\\ResponseFactory does not exist\r\n\r\nSo now what must I do to resolve this.Please help me."},"comment":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/comments/230190078","html_url":"https://github.com/tymondesigns/jwt-auth/issues/782#issuecomment-230190078","issue_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/782","id":230190078,"user":{"login":"buihoang91tin","id":9276526,"avatar_url":"https://avatars.githubusercontent.com/u/9276526?v=3","gravatar_id":"","url":"https://api.github.com/users/buihoang91tin","html_url":"https://github.com/buihoang91tin","followers_url":"https://api.github.com/users/buihoang91tin/followers","following_url":"https://api.github.com/users/buihoang91tin/following{/other_user}","gists_url":"https://api.github.com/users/buihoang91tin/gists{/gist_id}","starred_url":"https://api.github.com/users/buihoang91tin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buihoang91tin/subscriptions","organizations_url":"https://api.github.com/users/buihoang91tin/orgs","repos_url":"https://api.github.com/users/buihoang91tin/repos","events_url":"https://api.github.com/users/buihoang91tin/events{/privacy}","received_events_url":"https://api.github.com/users/buihoang91tin/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T01:51:47Z","updated_at":"2016-07-04T01:51:47Z","body":"I have tried like this issue. [654](https://github.com/lucadegasperi/oauth2-server-laravel/issues/654)\r\nIt's return Auth::user()->id\r\nBut response()->json(compact('token')); always return null. So how can I compact token when I have auth"}}
{"actor":{"display_login":"buihoang91tin"}}