src/Conductors/Concerns/DisassociatesAbilities.php
public function to($abilities, $entity = null, array $attributes = [])
    {
        if (call_user_func_array([$this, 'shouldConductLazy'], func_get_args())) {
            return $this->conductLazy($abilities);
        }

        if ($ids = $this->getAbilityIds($abilities, $entity, $attributes)) {
            $this->disassociateAbilities($this->getAuthority(), $ids);
        }

        return true;
    }
public function to($abilities, $entity = null, array $attributes = [])
    {
        if (call_user_func_array([$this, 'shouldConductLazy'], func_get_args())) {
            return $this->conductLazy($abilities);
        }

        if ($ids = $this->getAbilityIds($abilities, $entity, $attributes)) {
            $this->disassociateAbilities($this->getAuthority(), $ids);
        }

        return true;
    }
public function to ( $ abilities , $ entity = null , array $ attributes = [ ] ) { if ( call_user_func_array ( [ $ this , 'shouldConductLazy' ] , func_get_args ( ) ) ) { return $ this -> conductLazy ( $ abilities ) ; } if ( $ ids = $ this -> getAbilityIds ( $ abilities , $ entity , $ attributes ) ) { $ this -> disassociateAbilities ( $ this -> getAuthority ( ) , $ ids ) ; } return true ; }
Remove the given ability from the model.

@param  mixed  $abilities
@param  \Illuminate\Database\Eloquent\Model|string|null  $entity
@param  array  $attributes
@return bool|\Silber\Bouncer\Conductors\Lazy\ConductsAbilities
Remove the given ability from the model .