From 9fa73b2ecc01cdebb4c1ab8d43de04a2982a1a99 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 29 Nov 2025 18:27:23 +0530 Subject: [PATCH] Added proper imports for mail --- routes/console.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/console.php b/routes/console.php index 7d35e4e..5359745 100644 --- a/routes/console.php +++ b/routes/console.php @@ -2,6 +2,10 @@ use Illuminate\Foundation\Inspiring; use Illuminate\Support\Facades\Artisan; +use App\Models\AlertMailRule; +use Illuminate\Console\Scheduling\Schedule; + + Artisan::command('inspire', function () { $this->comment(Inspiring::quote()); @@ -14,9 +18,6 @@ app()->booted(function () { $schedule = app(Schedule::class); // $schedule->command('report:send-daily-production')->dailyAt('07:59'); - - if (Schema::hasTable('alert_mail_rules')) { - // Production report scheduling $productionRules = AlertMailRule::where('module', 'ProductionQuantities') ->where('rule_name', 'ProductionMail') @@ -93,5 +94,4 @@ app()->booted(function () { break; } } - } }); -- 2.49.1