$model = AppUser::query();
return DataTables::eloquent($model)
->addColumn('intro', 'Hi {{$name}}!')->toJson();
// OR With closer
return DataTables::eloquent($model)
->addColumn('intro', function(User $user) {
return 'Hi ' . $user->name . '!';
})
->toJson()