src/Conductors/ForbidsAbilities.php
protected function forbidAbilities(array $ids, Model $authority = null)
    {
        $ids = array_diff($ids, $this->getAssociatedAbilityIds($authority, $ids, true));

        if (is_null($authority)) {
            $this->forbidAbilitiesToEveryone($ids);
        } else {
            $this->forbidAbilitiesToAuthority($ids, $authority);
        }
    }
protected function forbidAbilities(array $ids, Model $authority = null)
    {
        $ids = array_diff($ids, $this->getAssociatedAbilityIds($authority, $ids, true));

        if (is_null($authority)) {
            $this->forbidAbilitiesToEveryone($ids);
        } else {
            $this->forbidAbilitiesToAuthority($ids, $authority);
        }
    }
protected function forbidAbilities ( array $ ids , Model $ authority = null ) { $ ids = array_diff ( $ ids , $ this -> getAssociatedAbilityIds ( $ authority , $ ids , true ) ) ; if ( is_null ( $ authority ) ) { $ this -> forbidAbilitiesToEveryone ( $ ids ) ; } else { $ this -> forbidAbilitiesToAuthority ( $ ids , $ authority ) ; } }
Associate the given abilitiy IDs as forbidden abilities.

@param  array  $ids
@param  \Illuminate\Database\Eloquent\Model|null  $authority
@return void
Associate the given abilitiy IDs as forbidden abilities .