Pagination
Tables paginate automatically, with 10 rows per page and choices of 10, 25, 50, and 100.
UsersTable::make('users') ->data($users) ->pageSize(25) ->pageSizeOptions([10, 25, 50]);InertiaX includes the default page size in the available choices. Eloquent queries paginate in the database; collections paginate in memory.
Show every row
Section titled “Show every row”For a bounded dataset:
UsersTable::make('users')->data($users)->pagination(false);Disabling pagination sends the full result to the browser.
Page changes
Section titled “Page changes”Search, filters, sorting, and page-size changes reset the table to page 1. The current page is stored in the URL when using the Inertia integration.
See Table API for input validation and out-of-range pages.
Pagination links
Section titled “Pagination links”With component ID orders, pagination uses orders_page and orders_per_page. For example,
/orders?orders_page=2&orders_per_page=25 requests page 2 with 25 rows. The page size must be
one of the table’s allowed choices. Interactions omit implicit defaults; initially explicit keys
may remain. See URL state.
A stale page link shows a problem inside the table. Users can reset pagination to return to page 1; no setup is required beyond the ordinary Inertia integration.