PaginatesEloquentModelsUsingDatabase
interface PaginatesEloquentModelsUsingDatabase
Contract for engines that paginate directly from the database.
This interface is implemented by the DatabaseEngine to provide native database pagination, which is more efficient than the default Scout pagination that fetches IDs first and then hydrates models.
Methods
paginateUsingDatabase(Builder $builder, int $perPage, string $pageName, int $page)
Paginate the given search on the engine using database pagination.
simplePaginateUsingDatabase(Builder $builder, int $perPage, string $pageName, int $page)
Paginate the given search on the engine using simple database pagination.
Details
at line 23
LengthAwarePaginator
paginateUsingDatabase(Builder $builder, int $perPage, string $pageName, int $page)
Paginate the given search on the engine using database pagination.