This commit is contained in:
Lizandro Guarnizo
2026-01-06 15:35:59 -05:00
commit a768146f65
602 changed files with 42505 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
use Illuminate\Foundation\Console\ClosureCommand;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
// Reporte de ventas semanal
Schedule::command('reporte:ventas')->daily();
/* // Verificación de alertas de stock - ejecutar cada 6 horas
Schedule::command('stock:verificar-alertas')
->everySixHours()
->withoutOverlapping()
->onFailure(function () {
\Illuminate\Support\Facades\Log::error('Error al ejecutar verificación de alertas de stock');
});
*/
// También ejecutar al inicio del día laboral
Schedule::command('stock:verificar-alertas')
->dailyAt('08:00')
->withoutOverlapping()
->description('Verificación matutina de niveles de stock');
Artisan::command('inspire', function () {
/** @var ClosureCommand $this */
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');