I have an integration with laravel datatables with elasticsearch. For the previous versions, this code was solving the issue.
return value(new CollectionEngine(collect($data), new DatatablesRequest()))
->setTotalRecords($total)
->make(true);
Right now with the new version of datatables (v8) the constructor for collectionEngine has changed and no longer receives a second parameter with the request and the Yajra\DataTables\Request class has be removed as well
Still looking for a solution but with no success on this. How can I make this integration the same way I was doing it before.