Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

// Setting Cron in AWS
// type command "crontab -e" and paste the below formatted line
* * * * * /pathToYourPhp /pathToArtisan/artisan schedule:run >> /dev/null 2>&1
// for example * * * * * /usr/bin/php7.4 /var/www/html/testproject/artisan schedule:run >> /dev/null 2>&1
 
PREVIOUS NEXT
Tagged: #cd #php #artisan
ADD COMMENT
Topic
Name
3+7 =