Illuminate\Database\Eloquent\Model::newQueryWithoutScope PHP Method

newQueryWithoutScope() public method

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