Extras
Pagination
Display pagination for paginated data such as blog posts.
resources/js/Components/Pagination.vue
Component accepts two parameters:
- data: Pagination data (total, per page and current page). You can use helper method
get_pagination_data
to get pagination data. - target:
- variant: You can render
default
orsimple
pagination. Simple pagination will have previous and next buttons and current page indicator, while the default one has multiple page numbers. - target: ID of the data section. Required to scroll to the start on page change.