If an extension provides a data.console directory, it can define Artisan commands and schedules using a Console.yml file. The installer automatically generates the necessary PHP command classes and schedule entries.
Command Definition
For each command defined in the Console.yml hierarchy, the following fields are used:
Signature: The Artisan command signature (e.g., extension:my-command).Description: The command description.Path: The relative path to the logic file (must end in .php).Interval: (Optional) The scheduling frequency.
Supported Scheduling Intervals
If an interval is provided, the installer maps it to the following Blueprint/Laravel schedule methods:
everyMinute, everyTwoMinutes, everyThreeMinutes, everyFourMinutes, everyFiveMinutes, everyTenMinutes, everyFifteenMinutes, everyThirtyMinutes.hourly, daily, weekly, monthly, quarterly, yearly.weekdays, weekends, sundays, mondays, tuesdays, wednesdays, thursdays, fridays, saturdays.- Custom Cron: Any other string is treated as a standard cron expression (e.g.,
cron('0 * * * *')).