I have implemented Eloquent ORM using CodeIgniter and been able to fetch records from the database. Need some help with implementing Server-side datatables using the above. http://datatables.net/examples/data_sources/server_side.html
Tried using this:
$data = User::all()->toJson();
Gets data in JSON but doesnt work as it needs more data for datatable like the number of records and number of times table is drawn etc.
I am really stuck out and this small fix would help me a lot.