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

        if (is_null($authority)) {
            $this->giveAbilitiesToEveryone($ids);
        } else {
            $this->giveAbilitiesToAuthority($ids, $authority);
        }
    }
protected function giveAbilities(array $ids, Model $authority = null)
    {
        $ids = array_diff($ids, $this->getAssociatedAbilityIds($authority, $ids, false));

        if (is_null($authority)) {
            $this->giveAbilitiesToEveryone($ids);
        } else {
            $this->giveAbilitiesToAuthority($ids, $authority);
        }
    }
protected function giveAbilities ( array $ ids , Model $ authority = null ) { $ ids = array_diff ( $ ids , $ this -> getAssociatedAbilityIds ( $ authority , $ ids , false ) ) ; if ( is_null ( $ authority ) ) { $ this -> giveAbilitiesToEveryone ( $ ids ) ; } else { $ this -> giveAbilitiesToAuthority ( $ ids , $ authority ) ; } }
Associate the given ability IDs as allowed abilities.

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