From 00d236dfd50c9dd09984a5bc2652906e7324de3f Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 13 Nov 2025 11:08:13 +0530 Subject: [PATCH] Added logs method in production report --- routes/console.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/console.php b/routes/console.php index 223c6f0..888d87c 100644 --- a/routes/console.php +++ b/routes/console.php @@ -24,7 +24,6 @@ Artisan::command('inspire', function () { $productionRules = AlertMailRule::where('module', 'ProductionQuantities') ->where('rule_name', 'ProductionMail') ->select('plant', 'schedule_type') - ->select('plant', 'schedule_type') ->distinct() ->get(); @@ -32,7 +31,8 @@ Artisan::command('inspire', function () { $type = $rule->schedule_type; $plantId = $rule->plant; - $command = $schedule->command('send:production-report', [$type, $plantId]); + $command = $schedule->command('send:production-report', [$type, $plantId]) + ->appendOutputTo(storage_path('logs/scheduler.log')); switch ($type) { case 'Live':