From a56d03d82298adcaa7ceb01233553061a6b03293 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Wed, 17 Apr 2024 10:28:28 +0800 Subject: [PATCH] Fix --- app/Console/Commands/TaskLedgerGenerateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/TaskLedgerGenerateCommand.php b/app/Console/Commands/TaskLedgerGenerateCommand.php index f6229c0..52e88c9 100644 --- a/app/Console/Commands/TaskLedgerGenerateCommand.php +++ b/app/Console/Commands/TaskLedgerGenerateCommand.php @@ -63,7 +63,7 @@ class TaskLedgerGenerateCommand extends Command return $planable->setRelation('plan', $plan); }); - $stores = Store::with(['master'])->all(); + $stores = Store::with(['master'])->get(); /** @var \App\Models\Store */ foreach ($stores as $store) {