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

        $ids = $this->getAbilityIds($abilities, $model, $attributes);

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

        $ids = $this->getAbilityIds($abilities, $model, $attributes);

        $this->giveAbilities($ids, $this->getAuthority());
    }
public function to ( $ abilities , $ model = null , array $ attributes = [ ] ) { if ( call_user_func_array ( [ $ this , 'shouldConductLazy' ] , func_get_args ( ) ) ) { return $ this -> conductLazy ( $ abilities ) ; } $ ids = $ this -> getAbilityIds ( $ abilities , $ model , $ attributes ) ; $ this -> giveAbilities ( $ ids , $ this -> getAuthority ( ) ) ; }
Give the abilities to the authority.

@param  \Illuminate\Database\Eloquent\model|array|int  $abilities
@param  \Illuminate\Database\Eloquent\Model|string|null  $model
@param  array  $attributes
@return \Silber\Bouncer\Conductors\Lazy\ConductsAbilities|null
Give the abilities to the authority .