Skip to content

Commit 3adb099

Browse files
Update DataTableQueuedExport.php
Add cast to array for variable $row. This will accept the result from DB Query.
1 parent 4b24e88 commit 3adb099

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Exports/DataTableQueuedExport.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public function map($row): array
4343
return $this->columns
4444
->map(function (Column $column, $index) use ($row) {
4545
$property = $column['data'];
46-
46+
$row = (array) $row;
47+
4748
if ($row[$property] instanceof \DateTime) {
4849
$this->dates[] = $index;
4950

0 commit comments

Comments
 (0)