Silber\Bouncer\Conductors\Traits\DisassociatesAbilities::getModel PHP Method

getModel() protected method

Get the model from which to disassociate the abilities.
protected getModel ( ) : Model | null
return Illuminate\Database\Eloquent\Model | null
    protected function getModel()
    {
        if ($this->model instanceof Model) {
            return $this->model;
        }
        return Models::role()->where('name', $this->model)->first();
    }