{"action":"created","issue":{"url":"https://api.github.com/repos/romanbican/roles/issues/134","repository_url":"https://api.github.com/repos/romanbican/roles","labels_url":"https://api.github.com/repos/romanbican/roles/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/romanbican/roles/issues/134/comments","events_url":"https://api.github.com/repos/romanbican/roles/issues/134/events","html_url":"https://github.com/romanbican/roles/issues/134","id":115123733,"number":134,"title":"Sync Roles","user":{"login":"amberlampsio","id":9902982,"avatar_url":"https://avatars.githubusercontent.com/u/9902982?v=3","gravatar_id":"","url":"https://api.github.com/users/amberlampsio","html_url":"https://github.com/amberlampsio","followers_url":"https://api.github.com/users/amberlampsio/followers","following_url":"https://api.github.com/users/amberlampsio/following{/other_user}","gists_url":"https://api.github.com/users/amberlampsio/gists{/gist_id}","starred_url":"https://api.github.com/users/amberlampsio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amberlampsio/subscriptions","organizations_url":"https://api.github.com/users/amberlampsio/orgs","repos_url":"https://api.github.com/users/amberlampsio/repos","events_url":"https://api.github.com/users/amberlampsio/events{/privacy}","received_events_url":"https://api.github.com/users/amberlampsio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-04T18:59:25Z","updated_at":"2016-02-04T15:34:23Z","closed_at":null,"body":"I was curious as to why there is no Sync feature for Roles?\r\n\r\nSomething along the lines of this?  Are there any known issues with syncing roles?\r\n\r\n```php\r\n public function syncRoles(array $role)\r\n {\r\n        $this->roles = null;\r\n        return $this->roles()->sync($role);\r\n }\r\n```"},"comment":{"url":"https://api.github.com/repos/romanbican/roles/issues/comments/179902957","html_url":"https://github.com/romanbican/roles/issues/134#issuecomment-179902957","issue_url":"https://api.github.com/repos/romanbican/roles/issues/134","id":179902957,"user":{"login":"mackhankins","id":2184080,"avatar_url":"https://avatars.githubusercontent.com/u/2184080?v=3","gravatar_id":"","url":"https://api.github.com/users/mackhankins","html_url":"https://github.com/mackhankins","followers_url":"https://api.github.com/users/mackhankins/followers","following_url":"https://api.github.com/users/mackhankins/following{/other_user}","gists_url":"https://api.github.com/users/mackhankins/gists{/gist_id}","starred_url":"https://api.github.com/users/mackhankins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackhankins/subscriptions","organizations_url":"https://api.github.com/users/mackhankins/orgs","repos_url":"https://api.github.com/users/mackhankins/repos","events_url":"https://api.github.com/users/mackhankins/events{/privacy}","received_events_url":"https://api.github.com/users/mackhankins/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T15:34:23Z","updated_at":"2016-02-04T15:34:23Z","body":"Thanks, I need to do something like this for both roles and permissions."}}