Since v7.0, all dataTable response are encoded to prevent XSS attack. In case you need to display html on your columns, you can use rawColumns
api.
action
column is allowed as raw by default.
return DataTables::eloquent(Role::select())
->rawColumns(['name', 'action'])
->toJson();
return DataTables::eloquent(Role::select())
->escapeColumns(['name'])
->toJson();
return DataTables::eloquent(Role::select())
->escapeColumns()
->toJson();
return DataTables::eloquent(Role::select())
->escapeColumns([])
->toJson();
return DataTables::eloquent(Role::select())
->escapeColumns([0])
->make();