yajra laravel datatables rawcolumn

Solutions on MaxInterview for yajra laravel datatables rawcolumn by the best coders in the world

showing results for - "yajra laravel datatables rawcolumn"
Carla
02 Jul 2020
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});