Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

laravel datatables edit column html

use DataTables;

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

    return DataTables::eloquent($model)
                ->editColumn('name', function(User $user) {
                    return 'Hi ' . $user->name . '!';
                })
                ->toJson();
});
Source by yajrabox.com #
 
PREVIOUS NEXT
Tagged: #laravel #datatables #edit #column #html
ADD COMMENT
Topic
Name
5+3 =