I have installed yajra laravel on my project, I try to add action column with html button with id, I am using yajra laravel, these are my yajra laravel version:
- "yajra/laravel-datatables-buttons": "3.*"
- "yajra/laravel-datatables-fractal": "1.*",
- "yajra/laravel-datatables-html": "3.*",
- "yajra/laravel-datatables-oracle": "8.*"
How to add Action column with html button with id of data ?
here my datatables code to make datatables in laravel:
public function html()
{
$brands = Brands::select(array('brands.id','brands.name','brands.slug','brands.description','brands.logo','brands.published','brands.created_at','brands.updated_at'));
return $this->builder()
->columns($this->getColumns())
->minifiedAjax()
// ->addAction(['width' => '80px'])
->removeColumn('id')
->addColumn($this->actionColumns())
->parameters($this->getBuilderParameters());
}
this is my complete code for make datatables in laravel: https://pastebin.com/v1qYGNjb
I want to add button edit and delete in column Actions, how to do that with laravel datatables 8? I am using laravel datatables as a service.
