Learn Infinity
Learn Infinity is the most famous Programming & Web Development blog. Our principal is to provide the best online tutorial on web development. We execute the best tutorials for web experts this will help developers, programmers, freelancers and proving free resource you can download or preview the tutorials.
Related Posts
- 1 year ago
- 1 year ago
- 2 years ago
Hi, your demo was excellent, helps me alot. Now I have one question. I want to open a modal for edit each row data. How can I perform this? Can you help me?
Hi Pedro Danieli,
this code help me to done edit and delete button in datatable
return Datatanles::of(Products::query())->addColumn(‘action’, function ($query) {
return ‘id) . ‘” class=”btn btn-success”>Edit id) . ‘” class=”btn btn-danger”>Delete‘;
})->make(true);
your may try this way
Thanks for answer. I will inprove this solution.
excellent work , i have previous problem with yajra/laravel-datatables but u make things alot easy with this tutorial , thank you.
but about this line in the controller
Products::query() is this and instance of builder or what as i could not find it in laravel documentation.
so what data type should i pass to Datatable::of() method?
Why the global search is not working with the addColumn function?
very nice article … i project work awesome.
thanks boss