Silber\Bouncer\Conductors\Traits\ConductsAbilities::toManage PHP Method

toManage() public method

Allow/disallow all abilities on the given model.
public toManage ( string | array | Model $models, array $attributes = [] ) : void
$models string | array | Illuminate\Database\Eloquent\Model
$attributes array
return void
    public function toManage($models, array $attributes = [])
    {
        if (is_array($models)) {
            foreach ($models as $model) {
                $this->to('*', $model, $attributes);
            }
        } else {
            $this->to('*', $models, $attributes);
        }
    }