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": [ ]}