Caffeinated\Shinobi\Models\Permission::syncRoles PHP Method

syncRoles() public method

Syncs the given role(s) with the permission.
public syncRoles ( array $roleIds = [] ) : boolean
$roleIds array
return boolean
    public function syncRoles(array $roleIds = [])
    {
        return $this->roles()->sync($roleIds);
    }