Skip to content

Commit

Permalink
fix collect not found on laravel old version
Browse files Browse the repository at this point in the history
  • Loading branch information
bocanhcam committed Feb 25, 2025
1 parent 44636e7 commit 5129efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public function fromScout(FromQuery $sheetExport, Worksheet $worksheet)
*/
public function fromCollection(FromCollection $sheetExport)
{
$this->appendRows($sheetExport->collection()->collect(), $sheetExport);
$this->appendRows(new Collection($sheetExport->collection()->all()), $sheetExport);
}

/**
Expand Down

0 comments on commit 5129efb

Please sign in to comment.