Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Transformers/DataArrayTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ protected function buildColumnByCollection(array $row, Collection $columns, stri
$data = is_array($data) ? json_encode($data) : $this->decodeContent($data);
}

$results[$title] = $data;
if(isset($column->exportRender)){
$callback = $column->exportRender;
$results[$title] = $callback($row,$data);
}else{
$results[$title] = $data;
}
}
});

Expand Down