Answers for "yajra laravel datatables rawcolumn"

PHP
0

yajra laravel datatables rawcolumn

use DataTables;

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

    return DataTables::eloquent($model)
                ->addColumn('link', '<a href="#">Html Column</a>')
                ->addColumn('action', 'path.to.view')
                ->rawColumns(['link', 'action'])
                ->toJson();
});
Posted by: Guest on August-16-2020

Code answers related to "yajra laravel datatables rawcolumn"

Browse Popular Code Answers by Language