{"action":"created","comment":{"url":"https://api.github.com/repos/the-control-group/voyager/pulls/comments/91962421","pull_request_review_id":12471398,"id":91962421,"diff_hunk":"@@ -25,6 +32,7 @@ public function setRole($name)\n \n         if ($role) {\n             $this->role()->associate($role);\n+            $this->save();","path":"src/Traits/VoyagerUser.php","position":22,"original_position":22,"commit_id":"6e0504048db77a60033239795de8b4f8a398f3e9","original_commit_id":"6e0504048db77a60033239795de8b4f8a398f3e9","user":{"login":"marktopper","id":2232539,"avatar_url":"https://avatars.githubusercontent.com/u/2232539?v=3","gravatar_id":"","url":"https://api.github.com/users/marktopper","html_url":"https://github.com/marktopper","followers_url":"https://api.github.com/users/marktopper/followers","following_url":"https://api.github.com/users/marktopper/following{/other_user}","gists_url":"https://api.github.com/users/marktopper/gists{/gist_id}","starred_url":"https://api.github.com/users/marktopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marktopper/subscriptions","organizations_url":"https://api.github.com/users/marktopper/orgs","repos_url":"https://api.github.com/users/marktopper/repos","events_url":"https://api.github.com/users/marktopper/events{/privacy}","received_events_url":"https://api.github.com/users/marktopper/received_events","type":"User","site_admin":false},"body":"Please remove this, since it's no longer there in the `master` branch.","created_at":"2016-12-12T14:59:43Z","updated_at":"2016-12-12T14:59:43Z","html_url":"https://github.com/the-control-group/voyager/pull/372#discussion_r91962421","pull_request_url":"https://api.github.com/repos/the-control-group/voyager/pulls/372","_links":{"self":{"href":"https://api.github.com/repos/the-control-group/voyager/pulls/comments/91962421"},"html":{"href":"https://github.com/the-control-group/voyager/pull/372#discussion_r91962421"},"pull_request":{"href":"https://api.github.com/repos/the-control-group/voyager/pulls/372"}}},"pull_request":{"url":"https://api.github.com/repos/the-control-group/voyager/pulls/372","id":97481544,"html_url":"https://github.com/the-control-group/voyager/pull/372","diff_url":"https://github.com/the-control-group/voyager/pull/372.diff","patch_url":"https://github.com/the-control-group/voyager/pull/372.patch","issue_url":"https://api.github.com/repos/the-control-group/voyager/issues/372","number":372,"state":"open","locked":false,"title":"Search for multiple roles","user":{"login":"akaZorg","id":34574,"avatar_url":"https://avatars.githubusercontent.com/u/34574?v=3","gravatar_id":"","url":"https://api.github.com/users/akaZorg","html_url":"https://github.com/akaZorg","followers_url":"https://api.github.com/users/akaZorg/followers","following_url":"https://api.github.com/users/akaZorg/following{/other_user}","gists_url":"https://api.github.com/users/akaZorg/gists{/gist_id}","starred_url":"https://api.github.com/users/akaZorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaZorg/subscriptions","organizations_url":"https://api.github.com/users/akaZorg/orgs","repos_url":"https://api.github.com/users/akaZorg/repos","events_url":"https://api.github.com/users/akaZorg/events{/privacy}","received_events_url":"https://api.github.com/users/akaZorg/received_events","type":"User","site_admin":false},"body":"It would be handy having this feature.\r\n\r\nInstead of:\r\n```php\r\n@if (\r\n    Auth::user()->hasRole('roleA') || \r\n    Auth::user()->hasRole('roleB') || \r\n    Auth::user()->hasRole('roleC')\r\n) ...\r\n```\r\n\r\nWe can write:\r\n```php\r\n@if (Auth::user()->hasRole('roleA,roleB,roleC'))\r\n```\r\n\r\n","created_at":"2016-12-12T00:51:19Z","updated_at":"2016-12-12T14:59:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb8e20b9672f952b0990ab75ac0db651590d68e6","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/the-control-group/voyager/milestones/2","html_url":"https://github.com/the-control-group/voyager/milestone/2","labels_url":"https://api.github.com/repos/the-control-group/voyager/milestones/2/labels","id":2161970,"number":2,"title":"v0.10","description":"","creator":{"login":"marktopper","id":2232539,"avatar_url":"https://avatars.githubusercontent.com/u/2232539?v=3","gravatar_id":"","url":"https://api.github.com/users/marktopper","html_url":"https://github.com/marktopper","followers_url":"https://api.github.com/users/marktopper/followers","following_url":"https://api.github.com/users/marktopper/following{/other_user}","gists_url":"https://api.github.com/users/marktopper/gists{/gist_id}","starred_url":"https://api.github.com/users/marktopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marktopper/subscriptions","organizations_url":"https://api.github.com/users/marktopper/orgs","repos_url":"https://api.github.com/users/marktopper/repos","events_url":"https://api.github.com/users/marktopper/events{/privacy}","received_events_url":"https://api.github.com/users/marktopper/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":14,"state":"closed","created_at":"2016-11-28T19:54:50Z","updated_at":"2016-12-12T11:31:36Z","due_on":null,"closed_at":"2016-12-09T09:42:56Z"},"commits_url":"https://api.github.com/repos/the-control-group/voyager/pulls/372/commits","review_comments_url":"https://api.github.com/repos/the-control-group/voyager/pulls/372/comments","review_comment_url":"https://api.github.com/repos/the-control-group/voyager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/the-control-group/voyager/issues/372/comments","statuses_url":"https://api.github.com/repos/the-control-group/voyager/statuses/6e0504048db77a60033239795de8b4f8a398f3e9","head":{"label":"akaZorg:feature-search-multiple-roles","ref":"feature-search-multiple-roles","sha":"6e0504048db77a60033239795de8b4f8a398f3e9","user":{"login":"akaZorg","id":34574,"avatar_url":"https://avatars.githubusercontent.com/u/34574?v=3","gravatar_id":"","url":"https://api.github.com/users/akaZorg","html_url":"https://github.com/akaZorg","followers_url":"https://api.github.com/users/akaZorg/followers","following_url":"https://api.github.com/users/akaZorg/following{/other_user}","gists_url":"https://api.github.com/users/akaZorg/gists{/gist_id}","starred_url":"https://api.github.com/users/akaZorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaZorg/subscriptions","organizations_url":"https://api.github.com/users/akaZorg/orgs","repos_url":"https://api.github.com/users/akaZorg/repos","events_url":"https://api.github.com/users/akaZorg/events{/privacy}","received_events_url":"https://api.github.com/users/akaZorg/received_events","type":"User","site_admin":false},"repo":{"id":72710853,"name":"voyager","full_name":"akaZorg/voyager","owner":{"login":"akaZorg","id":34574,"avatar_url":"https://avatars.githubusercontent.com/u/34574?v=3","gravatar_id":"","url":"https://api.github.com/users/akaZorg","html_url":"https://github.com/akaZorg","followers_url":"https://api.github.com/users/akaZorg/followers","following_url":"https://api.github.com/users/akaZorg/following{/other_user}","gists_url":"https://api.github.com/users/akaZorg/gists{/gist_id}","starred_url":"https://api.github.com/users/akaZorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaZorg/subscriptions","organizations_url":"https://api.github.com/users/akaZorg/orgs","repos_url":"https://api.github.com/users/akaZorg/repos","events_url":"https://api.github.com/users/akaZorg/events{/privacy}","received_events_url":"https://api.github.com/users/akaZorg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akaZorg/voyager","description":"Voyager - The Missing Laravel Admin","fork":true,"url":"https://api.github.com/repos/akaZorg/voyager","forks_url":"https://api.github.com/repos/akaZorg/voyager/forks","keys_url":"https://api.github.com/repos/akaZorg/voyager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akaZorg/voyager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akaZorg/voyager/teams","hooks_url":"https://api.github.com/repos/akaZorg/voyager/hooks","issue_events_url":"https://api.github.com/repos/akaZorg/voyager/issues/events{/number}","events_url":"https://api.github.com/repos/akaZorg/voyager/events","assignees_url":"https://api.github.com/repos/akaZorg/voyager/assignees{/user}","branches_url":"https://api.github.com/repos/akaZorg/voyager/branches{/branch}","tags_url":"https://api.github.com/repos/akaZorg/voyager/tags","blobs_url":"https://api.github.com/repos/akaZorg/voyager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akaZorg/voyager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akaZorg/voyager/git/refs{/sha}","trees_url":"https://api.github.com/repos/akaZorg/voyager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akaZorg/voyager/statuses/{sha}","languages_url":"https://api.github.com/repos/akaZorg/voyager/languages","stargazers_url":"https://api.github.com/repos/akaZorg/voyager/stargazers","contributors_url":"https://api.github.com/repos/akaZorg/voyager/contributors","subscribers_url":"https://api.github.com/repos/akaZorg/voyager/subscribers","subscription_url":"https://api.github.com/repos/akaZorg/voyager/subscription","commits_url":"https://api.github.com/repos/akaZorg/voyager/commits{/sha}","git_commits_url":"https://api.github.com/repos/akaZorg/voyager/git/commits{/sha}","comments_url":"https://api.github.com/repos/akaZorg/voyager/comments{/number}","issue_comment_url":"https://api.github.com/repos/akaZorg/voyager/issues/comments{/number}","contents_url":"https://api.github.com/repos/akaZorg/voyager/contents/{+path}","compare_url":"https://api.github.com/repos/akaZorg/voyager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akaZorg/voyager/merges","archive_url":"https://api.github.com/repos/akaZorg/voyager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akaZorg/voyager/downloads","issues_url":"https://api.github.com/repos/akaZorg/voyager/issues{/number}","pulls_url":"https://api.github.com/repos/akaZorg/voyager/pulls{/number}","milestones_url":"https://api.github.com/repos/akaZorg/voyager/milestones{/number}","notifications_url":"https://api.github.com/repos/akaZorg/voyager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akaZorg/voyager/labels{/name}","releases_url":"https://api.github.com/repos/akaZorg/voyager/releases{/id}","deployments_url":"https://api.github.com/repos/akaZorg/voyager/deployments","created_at":"2016-11-03T05:11:10Z","updated_at":"2016-11-03T05:11:11Z","pushed_at":"2016-12-12T11:40:25Z","git_url":"git://github.com/akaZorg/voyager.git","ssh_url":"git@github.com:akaZorg/voyager.git","clone_url":"https://github.com/akaZorg/voyager.git","svn_url":"https://github.com/akaZorg/voyager","homepage":"https://the-control-group.github.io/voyager","size":18617,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"the-control-group:master","ref":"master","sha":"bae1f1729fda6d03edc8a836ec86d7929b1c8109","user":{"login":"the-control-group","id":5199022,"avatar_url":"https://avatars.githubusercontent.com/u/5199022?v=3","gravatar_id":"","url":"https://api.github.com/users/the-control-group","html_url":"https://github.com/the-control-group","followers_url":"https://api.github.com/users/the-control-group/followers","following_url":"https://api.github.com/users/the-control-group/following{/other_user}","gists_url":"https://api.github.com/users/the-control-group/gists{/gist_id}","starred_url":"https://api.github.com/users/the-control-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-control-group/subscriptions","organizations_url":"https://api.github.com/users/the-control-group/orgs","repos_url":"https://api.github.com/users/the-control-group/repos","events_url":"https://api.github.com/users/the-control-group/events{/privacy}","received_events_url":"https://api.github.com/users/the-control-group/received_events","type":"Organization","site_admin":false},"repo":{"id":72069409,"name":"voyager","full_name":"the-control-group/voyager","owner":{"login":"the-control-group","id":5199022,"avatar_url":"https://avatars.githubusercontent.com/u/5199022?v=3","gravatar_id":"","url":"https://api.github.com/users/the-control-group","html_url":"https://github.com/the-control-group","followers_url":"https://api.github.com/users/the-control-group/followers","following_url":"https://api.github.com/users/the-control-group/following{/other_user}","gists_url":"https://api.github.com/users/the-control-group/gists{/gist_id}","starred_url":"https://api.github.com/users/the-control-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-control-group/subscriptions","organizations_url":"https://api.github.com/users/the-control-group/orgs","repos_url":"https://api.github.com/users/the-control-group/repos","events_url":"https://api.github.com/users/the-control-group/events{/privacy}","received_events_url":"https://api.github.com/users/the-control-group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/the-control-group/voyager","description":"Voyager - The Missing Laravel Admin","fork":false,"url":"https://api.github.com/repos/the-control-group/voyager","forks_url":"https://api.github.com/repos/the-control-group/voyager/forks","keys_url":"https://api.github.com/repos/the-control-group/voyager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-control-group/voyager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-control-group/voyager/teams","hooks_url":"https://api.github.com/repos/the-control-group/voyager/hooks","issue_events_url":"https://api.github.com/repos/the-control-group/voyager/issues/events{/number}","events_url":"https://api.github.com/repos/the-control-group/voyager/events","assignees_url":"https://api.github.com/repos/the-control-group/voyager/assignees{/user}","branches_url":"https://api.github.com/repos/the-control-group/voyager/branches{/branch}","tags_url":"https://api.github.com/repos/the-control-group/voyager/tags","blobs_url":"https://api.github.com/repos/the-control-group/voyager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-control-group/voyager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-control-group/voyager/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-control-group/voyager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-control-group/voyager/statuses/{sha}","languages_url":"https://api.github.com/repos/the-control-group/voyager/languages","stargazers_url":"https://api.github.com/repos/the-control-group/voyager/stargazers","contributors_url":"https://api.github.com/repos/the-control-group/voyager/contributors","subscribers_url":"https://api.github.com/repos/the-control-group/voyager/subscribers","subscription_url":"https://api.github.com/repos/the-control-group/voyager/subscription","commits_url":"https://api.github.com/repos/the-control-group/voyager/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-control-group/voyager/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-control-group/voyager/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-control-group/voyager/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-control-group/voyager/contents/{+path}","compare_url":"https://api.github.com/repos/the-control-group/voyager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-control-group/voyager/merges","archive_url":"https://api.github.com/repos/the-control-group/voyager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-control-group/voyager/downloads","issues_url":"https://api.github.com/repos/the-control-group/voyager/issues{/number}","pulls_url":"https://api.github.com/repos/the-control-group/voyager/pulls{/number}","milestones_url":"https://api.github.com/repos/the-control-group/voyager/milestones{/number}","notifications_url":"https://api.github.com/repos/the-control-group/voyager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-control-group/voyager/labels{/name}","releases_url":"https://api.github.com/repos/the-control-group/voyager/releases{/id}","deployments_url":"https://api.github.com/repos/the-control-group/voyager/deployments","created_at":"2016-10-27T03:56:49Z","updated_at":"2016-12-12T13:42:38Z","pushed_at":"2016-12-12T14:35:29Z","git_url":"git://github.com/the-control-group/voyager.git","ssh_url":"git@github.com:the-control-group/voyager.git","clone_url":"https://github.com/the-control-group/voyager.git","svn_url":"https://github.com/the-control-group/voyager","homepage":"https://the-control-group.github.io/voyager","size":19443,"stargazers_count":1686,"watchers_count":1686,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":257,"mirror_url":null,"open_issues_count":41,"forks":257,"open_issues":41,"watchers":1686,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/the-control-group/voyager/pulls/372"},"html":{"href":"https://github.com/the-control-group/voyager/pull/372"},"issue":{"href":"https://api.github.com/repos/the-control-group/voyager/issues/372"},"comments":{"href":"https://api.github.com/repos/the-control-group/voyager/issues/372/comments"},"review_comments":{"href":"https://api.github.com/repos/the-control-group/voyager/pulls/372/comments"},"review_comment":{"href":"https://api.github.com/repos/the-control-group/voyager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/the-control-group/voyager/pulls/372/commits"},"statuses":{"href":"https://api.github.com/repos/the-control-group/voyager/statuses/6e0504048db77a60033239795de8b4f8a398f3e9"}}}}
{"actor":{"display_login":"marktopper"}}