Array Response
Array response is the default response of Datatables.
use Datatables; Route::get('user-data', function() { $model = App\User::query(); return Datatables::eloquent($model) ->addColumn('intro', 'Hi {{$name}}!') ->make();});
Example Response
{ "draw": 1, "recordsTotal": 10, "recordsFiltered": 3, "data": [ ]}