cron schedule code example
Example 1: cronjob set time
Min
Hour
Day of Month
Month
Day of Week
// * * * * * cd /Applications/MAMP/htdocs/project_name && Console/cake SendEmail staging
// Example
// 0 23 * * * cd /Applications/MAMP/htdocs/project_name && Console/cake SendEmail staging
Example 2: cronjob example
//Specify cron frequency
//e.g. run minute 0, every hour
0 */1 * * *
//enter a bash command to the script input field
//e.g. a wget command where the output isn't saved
wget -O- url_here >> /dev/null
Example 3: cron schedule:run
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1