Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

RazIacob's avatar

Having problems with Laravel Scout Typesense pagination

I submited a bug report on the laravel / scout repo about Incorrect Total Count in Laravel Scout Pagination but they closed the issue right away and they told me to ask for help here.

This is the issue: laravel/scout/issues/819

Can anyone help with this?

0 likes
3 replies
Evenerik's avatar

I'm experiencing the exact same issue. Currently considering changing to another engine

1 like
jackkitley's avatar

@raziacob Same issue here....

        return $this->model->search()
            ->query(fn(Builder $query) => $query->with(['mainListingImage']))
            ->options([
                'query_by' => 'vehicle_description, transmission, fuel_type, colour, year'
            ])
            ->paginate(12)
            ->withQueryString();
Dave Wize's avatar

Same here.

The pagination itself works but the pagination object returned contains only up untill current page.

Please or to participate in this conversation.