protected function prepareHeadersAndKeys($datatable)
    {
        $headers = [];
        $data    = [];
        $columns = $datatable->html()->getColumns();
        foreach ($columns as $column) {
            if ($column->data == 'action') {
                continue;
            }
            array_push($headers, $column->title);
            array_set($data, $column->data, 'get' . ucfirst($column->data) . 'Value');
        }
        return [$headers, $data];
    }
protected function prepareHeadersAndKeys($datatable)
    {
        $headers = [];
        $data    = [];
        $columns = $datatable->html()->getColumns();
        foreach ($columns as $column) {
            if ($column->data == 'action') {
                continue;
            }
            array_push($headers, $column->title);
            array_set($data, $column->data, 'get' . ucfirst($column->data) . 'Value');
        }
        return [$headers, $data];
    }
protected function prepareHeadersAndKeys ( $ datatable ) { $ headers = [ ] ; $ data = [ ] ; $ columns = $ datatable -> html ( ) -> getColumns ( ) ; foreach ( $ columns as $ column ) { if ( $ column -> data == 'action' ) { continue ; } array_push ( $ headers , $ column -> title ) ; array_set ( $ data , $ column -> data , 'get' . ucfirst ( $ column -> data ) . 'Value' ) ; } return [ $ headers , $ data ] ; }
Prepares headers and data keys for csv

@param ActivityLogs $datatable
@return array
Prepares headers and data keys for csv