Vuetable-2: laravel 5.5 new pagination API

Created on 11 Nov 2017  路  3Comments  路  Source: ratiw/vuetable-2

With laravel 5.5 the response json is returning items instead of data.

Is there a way I can tell vuetable-2 to listen to items instead of data?

LengthAwarePaginator { total: 103 lastPage: 21 items: Collection { items: [{'name':'ben'},{'name', 'alfred'}] } perPage: 5 currentPage: 1 path: "http://buzzcrm.vin/services" query: [] fragment: null pageName: "page" }

Most helpful comment

According to Laravel doc, the default is still data, but if you would like Vuetable to look at something else, use the data-path prop

All 3 comments

According to Laravel doc, the default is still data, but if you would like Vuetable to look at something else, use the data-path prop

Pagination works with the setting : pagination-path="meta"
Hope it helps

@ratiw yes the docs I think is not updated. Anyway thank you I will try data-path prop

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mondul picture mondul  路  3Comments

ericksongmr picture ericksongmr  路  5Comments

anselmobattisti picture anselmobattisti  路  5Comments

hanxue picture hanxue  路  3Comments

chrislandeza picture chrislandeza  路  3Comments