I want to implement the filter feature to it. Like this:
class EarningReportsDataTable extends DataTable
{
/**
* Build the DataTable class.
*
* @param QueryBuilder $query Results from query() method.
*/
public function withData($data)
{
$this->additionalData = $data;
return $this;
}
public function dataTable(QueryBuilder $query): EloquentDataTable
{
return (new EloquentDataTable($query));
}
I’m not getting anything – no clue.
New contributor
Make Mail is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1