command(Commands\TaskUpdateCommand::class)->hourly()->runInBackground(); $schedule->command(Commands\TaskLedgerGenerateCommand::class)->dailyAt('01:00')->runInBackground(); $schedule->command(Commands\EmployeeSign::class)->dailyAt('02:00')->runInBackground(); // $schedule->call(fn() => logger('schedule running'))->everyMinute(); } /** * Register the commands for the application. */ protected function commands(): void { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }