Open yourProjectName/app/Console/Kernel.php

Here is a schedule example

In my case, it’s to daily delete the expired orders

• Here are the meaning of * in orders
1. Minute(0-59)
2. Hour(0-23)
3. What date in a month(1-31)
4. Month(1-12)
5. What day in a week(0-6)
• apache
it represents the user. It’s important here, because if you don’t set it properly, when error occurs as you execute the schedule, the log owner will be the user you set here, which might have authority problem. If you also log other information in other place, and the whole project might not be able to work properly when the log file reject to be written.
• cd ray cd /var/www/html/yourProjectName
• php artisan schedule:run >> /dev/null 2>&1