This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

sushma30159
sushma30159

How to add the model listing with groupby records with pagination?

Rob Ballantyne (Dynamedia)
Rob Ballantyne (Dynamedia)

From the Laravel documentation:

https://laravel.com/docs/5.5/pagination

'Currently, pagination operations that use a groupBy statement cannot be executed efficiently by Laravel. If you need to use a groupBy with a paginated result set, it is recommended that you query the database and create a paginator manually.'

Fortunately, it's quite easy to create your own paginate and instructions are included in the docs. I'd give you more but I'm on phone. Cheers

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.