From 8bda3087908cacc70b1ddbb8b4ebdc7a8b127fb6 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Sun, 15 Jan 2023 21:15:57 +0100 Subject: [PATCH] schedule --- app/Console/Kernel.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 820a3a30..261092a6 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -2,6 +2,8 @@ namespace App\Console; +use App\Console\Commands\Feed\ReadAndSyncEinundzwanzigPodcastFeed; +use App\Console\Commands\OpenBooks\SyncOpenBooks; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Laravel\Nova\Trix\PruneStaleAttachments; @@ -12,16 +14,21 @@ class Kernel extends ConsoleKernel * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule + * * @return void */ protected function schedule(Schedule $schedule) { - $schedule->call(new PruneStaleAttachments)->daily(); + $schedule->call(new PruneStaleAttachments) + ->daily(); + $schedule->call(SyncOpenBooks::class) + ->dailyAt('23:00'); + $schedule->call(ReadAndSyncEinundzwanzigPodcastFeed::class) + ->dailyAt('23:30'); } /** * Register the commands for the application. - * * @return void */ protected function commands()