Silber\Bouncer\Database\HasRoles::scopeWhereIs PHP Метод

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

Constrain the given query by the provided role.
public scopeWhereIs ( Builder $query, string $role ) : void
$query Illuminate\Database\Eloquent\Builder
$role string
Результат void
    public function scopeWhereIs($query, $role)
    {
        $constraint = new RolesQuery();
        $params = array_slice(func_get_args(), 1);
        array_unshift($params, $query);
        call_user_func_array([$constraint, 'constrainWhereIs'], $params);
    }