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"
}
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
Most helpful comment
According to Laravel doc, the default is still
data, but if you would like Vuetable to look at something else, use thedata-pathprop