What is Laravel scheduler and how does it work?

Updated May 16, 2026

Short answer

Laravel scheduler allows defining cron-based tasks in code instead of system cron jobs.

Deep explanation

The scheduler runs inside Laravel and defines tasks in app/Console/Kernel.php. A single system cron entry runs every minute, and Laravel decides which tasks should execute. It supports intervals like hourly, daily, or custom schedules.

Real-world example

Used for sending daily reports or cleaning logs.

Common mistakes

  • Forgetting to add system cron entry for scheduler execution.

Follow-up questions

  • What is cron job?
  • Can scheduler run multiple tasks?

More Laravel interview questions

View all →