gilbitron / laravel-vue-pagination

A Vue.js pagination component for Laravel paginators
https://laravel-vue-pagination.org
MIT License
750 stars 143 forks source link

Issue with the limit and pagination per page #120

Closed cybergears closed 3 years ago

cybergears commented 3 years ago

Hello, I have 6 records in the database, and i want to show 2 records at a time. The data is being fetched and shown. but the pagination links are not visible. i am using laravel as backend and fetching the results on the frontend. i am paginating the results in the set of two //inside laravel controller DB_MODEL::paginate(2); //inside vue component on the frontend `<pagination limit="2" :data="notice" @pagination-change-page="noticePaginate">'

it should show the first two records and implement the pagination for other remaining records. It is showing first two records but no pagination

Kindly help. Thankyou!

cybergears commented 3 years ago

Hello, I found the issue. Firstly i was not declaring the pagination in the components and secondly i was passing the result as array. pagination requires object to work . Its now working thankyou very much . the plugin works like charm and it saves a lot of time . easy to implement. good work.