1use DataTables;
2
3Route::get('user-data', function() {
4 $model = App\User::query();
5
6 return DataTables::eloquent($model)
7 ->addColumn('link', '<a href="#">Html Column</a>')
8 ->addColumn('action', 'path.to.view')
9 ->rawColumns(['link', 'action'])
10 ->toJson();
11});