value('value') ?? 'internal'; if ($method === 'internal') { Event::listen(RouteMatched::class, [ScheduleListener::class, 'handle']); } } // TODO: read where to put these // it seems to work here, but where is the apropriate place? // Kernel::schedule did not work Schedule::command('caldav:sync') ->everyMinute() ->withoutOverlapping(); Schedule::job(new CheckInvoiceDueDatesJob()) ->daily() ->withoutOverlapping(); } }