Length lengthawarepaginator when using datatable
Length lengthawarepaginator when using datatable
Im using the query pagination using datatable and display the result in the datatable. However once I try to refresh the page back, this error appears.
[04:08:12] LOG.error: No available engine for Illuminate\Pagination\LengthAwarePaginator {"exception...
I've checked my datatable version using this code, and the version is 1.10.21-dev:
$(document).ready(function(){
$('#table_data').DataTable();
var versionNo = $.fn.dataTable.version;
alert(versionNo);
});
What is the main caused of this? Do I missed something? I have run this command to fix it but however it doesnt work.
php artisan vendor:publish --tag=datatables --force
Answers
That's not an error from DataTables, I'm afraid. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin