Illuminate\Database\Eloquent\Model::newQueryWithoutScope PHP Méthode

newQueryWithoutScope() public méthode

Get a new query instance without a given scope.
public newQueryWithoutScope ( Illuminate\Database\Eloquent\Scope | string $scope ) : Builder
$scope Illuminate\Database\Eloquent\Scope | string
Résultat Builder
    public function newQueryWithoutScope($scope)
    {
        $builder = $this->newQuery();
        return $builder->withoutGlobalScope($scope);
    }
Model