Example of Task scheduling in OpenLitterMap/openlittermap-web

File app/Console/Kernel.php (link to Github)
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    //
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('sitemap:generate')->daily();
    }
    //
}

Additional resources on task scheduling: