Skip to content

Commit

Permalink
Use lazy() instead of cursor()
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 10, 2024
1 parent 7875e63 commit 3d812b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/QueuedExportAsCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function handle()
$query = unserialize($this->query);

$eloquentGenerator = function () use ($query) {
foreach ($query->cursor() as $model) {
foreach ($query->lazy() as $model) {
yield $model;
}
};
Expand Down

0 comments on commit 3d812b4

Please sign in to comment.