protected function giveAbilitiesToAuthority(array $ids, Model $authority)
    {
        $attributes = Models::scope()->getAttachAttributes(get_class($authority));

        $authority->abilities()->attach($ids, $attributes);
    }
protected function giveAbilitiesToAuthority(array $ids, Model $authority)
    {
        $attributes = Models::scope()->getAttachAttributes(get_class($authority));

        $authority->abilities()->attach($ids, $attributes);
    }
protected function giveAbilitiesToAuthority ( array $ ids , Model $ authority ) { $ attributes = Models :: scope ( ) -> getAttachAttributes ( get_class ( $ authority ) ) ; $ authority -> abilities ( ) -> attach ( $ ids , $ attributes ) ; }
Grant permission to these abilities to the given authority.

@param  array  $ids
@param  \Illuminate\Database\Eloquent\Model  $authority
@return void
Grant permission to these abilities to the given authority .