When I usually run my commands I do it from /var/www/project/html/current/
and it looks like this php artisan import:myData
. This works great.
But I can't get it to work while running it as a cron job, I have tried the following cron jobs.
*/3 * * * 1-5 cd /var/www/project/html/current/ php artisan import:myData >/dev/null 2>&1
*/3 * * * 1-5 /var/www/project/html/current/ php artisan import:myData >/dev/null 2>&1
*/3 * * * 1-5 /usr/local/bin/php /var/www/project/html/current/ php artisan import:myData >/dev/null 2>&1
Does anybody have a suggestion?
Thanks