{"action":"created","issue":{"url":"https://api.github.com/repos/caffeinated/shinobi/issues/51","repository_url":"https://api.github.com/repos/caffeinated/shinobi","labels_url":"https://api.github.com/repos/caffeinated/shinobi/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/caffeinated/shinobi/issues/51/comments","events_url":"https://api.github.com/repos/caffeinated/shinobi/issues/51/events","html_url":"https://github.com/caffeinated/shinobi/issues/51","id":190425274,"number":51,"title":"Trait Usage issue, ","user":{"login":"dflow","id":1641750,"avatar_url":"https://avatars.githubusercontent.com/u/1641750?v=3","gravatar_id":"","url":"https://api.github.com/users/dflow","html_url":"https://github.com/dflow","followers_url":"https://api.github.com/users/dflow/followers","following_url":"https://api.github.com/users/dflow/following{/other_user}","gists_url":"https://api.github.com/users/dflow/gists{/gist_id}","starred_url":"https://api.github.com/users/dflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dflow/subscriptions","organizations_url":"https://api.github.com/users/dflow/orgs","repos_url":"https://api.github.com/users/dflow/repos","events_url":"https://api.github.com/users/dflow/events{/privacy}","received_events_url":"https://api.github.com/users/dflow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T21:24:24Z","updated_at":"2016-12-22T19:58:59Z","closed_at":null,"body":"\r\n\r\ni get:\r\nErrorException in Model.php line 3093: Argument 1 passed to Illuminate\\Database\\Eloquent\\Model::is() must be an instance of Illuminate\\Database\\Eloquent\\Model, string given,\r\n\r\nwhen using:\r\n$user = User::first(); return $user->is('administrator');\r\n\r\nI added the use ShinobiTrait; to the User.php Model\r\n"},"comment":{"url":"https://api.github.com/repos/caffeinated/shinobi/issues/comments/268878436","html_url":"https://github.com/caffeinated/shinobi/issues/51#issuecomment-268878436","issue_url":"https://api.github.com/repos/caffeinated/shinobi/issues/51","id":268878436,"user":{"login":"xciser77","id":18699752,"avatar_url":"https://avatars.githubusercontent.com/u/18699752?v=3","gravatar_id":"","url":"https://api.github.com/users/xciser77","html_url":"https://github.com/xciser77","followers_url":"https://api.github.com/users/xciser77/followers","following_url":"https://api.github.com/users/xciser77/following{/other_user}","gists_url":"https://api.github.com/users/xciser77/gists{/gist_id}","starred_url":"https://api.github.com/users/xciser77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xciser77/subscriptions","organizations_url":"https://api.github.com/users/xciser77/orgs","repos_url":"https://api.github.com/users/xciser77/repos","events_url":"https://api.github.com/users/xciser77/events{/privacy}","received_events_url":"https://api.github.com/users/xciser77/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T19:58:59Z","updated_at":"2016-12-22T19:58:59Z","body":"i have the same problem within my app. I tried to check is a user has a role with $user->is('admin')\r\nand get the same error as above"}}
{"actor":{"display_login":"xciser77"}}