Silber\Bouncer\Bouncer::ownedVia PHP Метод

ownedVia() публичный Метод

Register an attribute/callback to determine if a model is owned by a given authority.
public ownedVia ( string | Closure $model, string | Closure | null $attribute = null ) : void
$model string | Closure
$attribute string | Closure | null
Результат void
    public function ownedVia($model, $attribute = null)
    {
        Models::ownedVia($model, $attribute);
        return $this;
    }