I had a problem with php artisan: run schedule. I have the following cron work on GoDaddy:
/usr/bin/php /home/usr/framework/artisan schedule:run >> /dev/null 2>&1
Each time I received this error message:
local.ERROR: exception 'ErrorException' with message 'Invalid argument supplied for foreach()' in /home/usr/framework/vendor/symfony/console/Input/ArgvInput.php:286
Stack trace:
But if I go to the terminal and write this:
php artisan schedule:run
Everything is working fine. I really don't know where I should look for a solution to this. I need your help to solve this problem. Thank.
source
share