Skip to content

Commit 3d812b4

Browse files
committed
Use lazy() instead of cursor()
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 7875e63 commit 3d812b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jobs/QueuedExportAsCsv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function handle()
7979
$query = unserialize($this->query);
8080

8181
$eloquentGenerator = function () use ($query) {
82-
foreach ($query->cursor() as $model) {
82+
foreach ($query->lazy() as $model) {
8383
yield $model;
8484
}
8585
};

0 commit comments

Comments
 (0)