Laravel yajra datatable plugin and Datatables 1.9
Laravel yajra datatable plugin and Datatables 1.9

Hi, we recently switch from to yajra datatables from Bllim\Datatables\Datatables.
We are using datatables 1.9. Since the switch however pagination is not working.
The generated Json is like this:
recordsTotal: 191,
recordsFiltered: 191,
Any hint of what could be the problem?
Thanks in advance
This discussion has been closed.
Answers
I have no idea what "yajra" is. Does it support DataTables 1.9?
Hi thanks for you reply!
yajra is Laravel datatable plugin for server side processing.
I did some more testing, we are using datatables 1.9.
The error now I get is:
Column not found: 1054 Unknown column '' in 'order clause'.
We are using the code below to initiate the datatable. Any idea/hint of what could be the problem?
The issue is that the new package you are using supports DataTables 1.10+, not 1.9 which is a legacy version and no longer supported. Unless the new package has a legacy mode, you would need to modify it to work with the legacy options or update to 1.10+. See also the server-side processing manual.
Allan
p.s. yajra is a popular Laravel package for DataTables. it is third party and not supported in these forums.
Hi Allan,
thanks but for what I read in the Laravel Plugin github page they seems to support 1.9,
https://github.com/yajra/laravel-datatables
"Works with DataTables v1.9 and v1.10 legacy code."
So I am maybe not properly initializating the datatables from the JS side?
Fabio
That is a 1.10+ parameter. See the legacy documentation for the old style parameters.
Allan