Added generate mail report for deletable record count via scheduler daily at 7 AM
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-01-29 18:51:23 +05:30
parent d71eef3833
commit c4153169eb

View File

@@ -3,8 +3,6 @@
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
@@ -13,6 +11,11 @@ Artisan::command('auto:scheduler', function () {
$this->call('custom:scheduler');
})->everyMinute()->withoutOverlapping();
Schedule::command('model:prune --pretend')// , ['--model' => WeightValidation::class]
->description('Deletable Old Records From Database')
->dailyAt('07:00')
->emailOutputTo('digitalmanufacturingiiot@gmail.com');
// app()->booted(function () {
// $schedule = app(Schedule::class);