Closed doubleprincez closed 4 years ago
https://bootstrap-table.com/docs/api/table-options/#url
Note that the required server response format is different depending on whether the 'sidePagination' option is specified. See the following examples: Without server-side pagination With server-side pagination
What data does your url(http://test.dev/api/admin/get-transactions) return?
i'm returning a Laravel Resource result, paginated in JSON format with data, meta and links
I included the data-data-field="data"
and passed additional attribute for the total to the JSON resultset
return AdminTransactionsResource::collection($transactions)->additional([
'total' => $transactions->count(),
]);
I'm getting
Error in mounted hook: "TypeError: columns[0][Symbol.iterator] is not a function"
from my vue controller when i try using laravel resource. Transactions Widget has the following code
And the controller has the following code
The resource just returns the array below
If you have any online example of how to fetch from laravel resource, please kindly direct me to it. I don't know if this error is as a result of laravel resource or in the bootstrap table iterator itself