From 73bf0d22f3d1e6310524ddebee93bcf303dd1793 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Tue, 18 Jun 2024 18:00:06 +0200 Subject: [PATCH] schedule --- app/Console/Kernel.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 1bde17c0..59c4765b 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -14,7 +14,7 @@ class Kernel extends ConsoleKernel * @var array */ protected $commands = [ - \App\Console\Commands\FixStoragePermissions::class, + ]; /** @@ -28,18 +28,6 @@ class Kernel extends ConsoleKernel // Log::info('Controllo schedule...'); // $schedule->command('inspire')->hourly(); - - // Pianifica l'esecuzione del comando ogni giorno a mezzanotte - $schedule->command('fix:storage-permissions')->daily()->at('00:30')->before(function () { - Log::info('Running fix:storage-permissions'); - }); - - $schedule->command('fix:storage-permissions')->daily()->at('11:35')->before(function () { - Log::info('Running fix:storage-permissions'); - }); - $schedule->command('fix:storage-permissions')->daily()->at('09:35')->before(function () { - Log::info('Running fix:storage-permissions'); - }); $schedule->command('backup:clean')->daily()->at('02:00')->before(function () { Log::info('Running backup:clean command'); @@ -64,6 +52,11 @@ class Kernel extends ConsoleKernel ->before(function () { Log::info('Running product:startday command'); }); + + // Pianifica l'esecuzione del comando ogni giorno a mezzanotte + $schedule->command('fix:storage-permissions')->daily()->at('00:30')->before(function () { + Log::info('Running fix:storage-permissions'); + }); } /**