Published 2 years ago by wowrudy
Hi, i got same problem like this
i cannot run php artisan command, it show nothing
and if i do composer update i got this error
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
i dont have any file on my project :
See if any of these solutions work for you..
Removed the bootstrap/cache/config.php file.
composer dumpautoload composer update.
Move php artisan clear-compiled from "pre-update-cmd" to the "post-update-cmd" in your composer.json file
"post-update-cmd": [ "php artisan clear-compiled", "php artisan optimize" ]
php artisan optimize --force
Similar problem here.
After I installed Laravel 5.5, everything worked fine, till I created as command with "php artisan make command: myCommand".
After that every time I run (for example: php artisan list) I will get this error:
In Client.php line 122: Invalid argument supplied for foreach()
At the moment I am stuck, any help would be greatly appreciated.