jamesdordoy / laravel-vue-datatable

Vue.js Datatable made for Laravel
https://jamesdordoy.github.io/laravel-vue-datatable
MIT License
151 stars 52 forks source link

Failed for prop "data". Expected Object, got Array #94

Closed devemtv closed 4 years ago

devemtv commented 4 years ago

Hi, i have a problem, i try to implement the component but i am getting this error...

Invalid prop: type check failed for prop "data". Expected Object, got Array

How should the data be passed to the props data?

I await your response, thanks.

jamesdordoy commented 4 years ago

Hi @devemtv,

The table expects the data from the backend to be paginated using the DataTableCollectionResource provided on the backend package.

See here for more details.

Thanks,

James