Column Builder is a fluent class that we can use to build our columns.
$column = [
'name' => 'id',
'data' => 'id',
'title' => 'Id',
'searchable' => true,
'orderable' => true,
'render' => 'function(){}',
'footer' => 'Id',
'exportable' => true,
'printable' => true,
];
use Yajra\DataTables\Html\Column;
$column = Column::make('id')
->title('Id')
->searchable(true)
->orderable(true)
->render('function(){}')
->footer('Id')
->exportable(true)
->printable(true);