src/Traits/LaratrustRoleTrait.php
public function detachPermissions($permissions = null)
    {
        if (!$permissions) {
            $permissions = $this->permissions()->get();
        }

        foreach ($permissions as $permission) {
            $this->detachPermission($permission);
        }

        return $this;
    }
public function detachPermissions($permissions = null)
    {
        if (!$permissions) {
            $permissions = $this->permissions()->get();
        }

        foreach ($permissions as $permission) {
            $this->detachPermission($permission);
        }

        return $this;
    }
public function detachPermissions ( $ permissions = null ) { if ( ! $ permissions ) { $ permissions = $ this -> permissions ( ) -> get ( ) ; } foreach ( $ permissions as $ permission ) { $ this -> detachPermission ( $ permission ) ; } return $ this ; }
Detach multiple permissions from current role

@param  mixed  $permissions
@return void
Detach multiple permissions from current role