{"action":"created","issue":{"url":"https://api.github.com/repos/Zizaco/entrust/issues/689","repository_url":"https://api.github.com/repos/Zizaco/entrust","labels_url":"https://api.github.com/repos/Zizaco/entrust/issues/689/labels{/name}","comments_url":"https://api.github.com/repos/Zizaco/entrust/issues/689/comments","events_url":"https://api.github.com/repos/Zizaco/entrust/issues/689/events","html_url":"https://github.com/Zizaco/entrust/issues/689","id":187066632,"number":689,"title":"role can't get users. 5.2.x-dev","user":{"login":"foreverglory","id":1069963,"avatar_url":"https://avatars.githubusercontent.com/u/1069963?v=3","gravatar_id":"","url":"https://api.github.com/users/foreverglory","html_url":"https://github.com/foreverglory","followers_url":"https://api.github.com/users/foreverglory/followers","following_url":"https://api.github.com/users/foreverglory/following{/other_user}","gists_url":"https://api.github.com/users/foreverglory/gists{/gist_id}","starred_url":"https://api.github.com/users/foreverglory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foreverglory/subscriptions","organizations_url":"https://api.github.com/users/foreverglory/orgs","repos_url":"https://api.github.com/users/foreverglory/repos","events_url":"https://api.github.com/users/foreverglory/events{/privacy}","received_events_url":"https://api.github.com/users/foreverglory/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-03T13:57:00Z","updated_at":"2016-11-13T05:28:44Z","closed_at":"2016-11-07T11:24:46Z","body":"Created a leader role, and add some users to this role `$user->attachRole($role)` \r\nHowever, when use of\r\n```php\r\n$role = Role::where('name', 'leader')->first();\r\n$users = $role->users();\r\n```\r\n$users is empty.\r\n\r\nin the Mysql, table `role_user` have data."},"comment":{"url":"https://api.github.com/repos/Zizaco/entrust/issues/comments/260168001","html_url":"https://github.com/Zizaco/entrust/issues/689#issuecomment-260168001","issue_url":"https://api.github.com/repos/Zizaco/entrust/issues/689","id":260168001,"user":{"login":"tosslife","id":7598390,"avatar_url":"https://avatars.githubusercontent.com/u/7598390?v=3","gravatar_id":"","url":"https://api.github.com/users/tosslife","html_url":"https://github.com/tosslife","followers_url":"https://api.github.com/users/tosslife/followers","following_url":"https://api.github.com/users/tosslife/following{/other_user}","gists_url":"https://api.github.com/users/tosslife/gists{/gist_id}","starred_url":"https://api.github.com/users/tosslife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tosslife/subscriptions","organizations_url":"https://api.github.com/users/tosslife/orgs","repos_url":"https://api.github.com/users/tosslife/repos","events_url":"https://api.github.com/users/tosslife/events{/privacy}","received_events_url":"https://api.github.com/users/tosslife/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T05:28:44Z","updated_at":"2016-11-13T05:28:44Z","body":"same"}}
{"actor":{"display_login":"tosslife"}}