src/SoftDeletingEloquentRepository.php
protected function newQuery()
    {
        $query = parent::newQuery();

        if ($this->onlyTrashed === true) {
            $query->onlyTrashed();
        }

        if ($this->withTrashed === true) {
            $query->withTrashed();
        }

        return $query;
    }
protected function newQuery()
    {
        $query = parent::newQuery();

        if ($this->onlyTrashed === true) {
            $query->onlyTrashed();
        }

        if ($this->withTrashed === true) {
            $query->withTrashed();
        }

        return $query;
    }
{@inheritdoc}

@return \Illuminate\Database\Eloquent\Builder