-
-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engine LengthAwarePaginator not supported #2334
Labels
Comments
I've changed the datatables.php config file to
And created a Paginator class based on the Collection class and got it kind working... hehe Gonna make some more tests... |
@diogoico good to hear that. I would gladly accept a PR for that if you would like to share your codes. :) Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary of problem or feature request
Hello, I've been trying to work with Laravel 6 + Latest laravel-datatables pagination, without any lucky hehe... It seems that the available laravel-datatables engines does not include LengthAwarePaginator which is the result of the simple laravel paginate, for example:
$users = \DB::table('USERS')->paginate(15); return datatables()->of($users)->toJson();
Returns the exception: "No available engine for Illuminate\Pagination\LengthAwarePaginator"
Is there any other way to use the native paginate + laravel-datatables? If I don't use the paginate from Laravel 6 and my table has too many rows, the datatables tries to apply pagination on the navigator, and it can't handle too many rows.
The text was updated successfully, but these errors were encountered: