class Kernel extends Kernel (View source)

Manages the application's scheduled commands and custom scheduling logic.

This class is responsible for ensuring loan reminder and overdue notifications are sent on time.

Methods

void
schedule(Schedule $schedule)

Define the application's command schedule.

void
commands()

Register the commands for the application.

Details

protected void schedule(Schedule $schedule)

Define the application's command schedule.

This method schedules tasks such as:

  • Sending loan reminders for loans due in 1 day and 7 days.
  • Sending overdue notifications for loans that are overdue, based on the number of overdue days.

Parameters

Schedule $schedule

the schedule instance used for defining command schedules

Return Value

void

protected void commands()

Register the commands for the application.

This method loads the application's custom console commands from the Commands directory and includes the route definitions from routes/console.php.

Return Value

void