Level 14
The author of yajra-datatables create an example of usage with datatable editor, see here https://github.com/yajra/laravel-datatables-editor
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am developing an application in which I process MySQL data with datatables I use yajra-data tables. To perform operations such as update, deletion and selection I use this approach:
...
return DataTables::of($data)
->addColumn('modifier', function ($data) {
return '<a href="#" class="btn btn-xs btn-warning Modifier" id="' . $data->id . '"><i class="material-icons">edit</i></a>';
})
->addColumn('supprimer', function ($sup) {
return '<a href="#" class="btn btn-xs btn-danger Supprimer" id="' . $sup->id . '"><i class="material-icons">delete</i></a>';
})
->addColumn('check', function ($check) {
return '<input type="checkbox" name="selected_materiels[]" class="check" id="' . $check->id . ' value="' . $check->id . '">';
})
->rawColumns(['modifier', 'supprimer', 'check'])
->make(true);
But recently, I came across this datatables editor https://editor.datatables.net/ which can perform these operations inside the API, I need a complete working example using MySQL to understand how I can adapt it to my current application, thanks in advance.
Please or to participate in this conversation.