Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

yajra laravel datatables rawcolumn

use DataTables;

Route::get('user-data', function() {
    $model = AppUser::query();

    return DataTables::eloquent($model)
                ->addColumn('link', '<a href="#">Html Column</a>')
                ->addColumn('action', 'path.to.view')
                ->rawColumns(['link', 'action'])
                ->toJson();
});
Source by yajrabox.com #
 
PREVIOUS NEXT
Tagged: #yajra #laravel #datatables #rawcolumn
ADD COMMENT
Topic
Name
6+5 =