I got error on php artisan migrate

Posted 4 years ago by strategicsdemexico

I got a error when I try to do php artisan update on my production server

[ErrorException]                         
  Invalid argument supplied for foreach()  
                                           


Content-type: text/html

Script php artisan clear-compiled handling the post-update-cmd event returned with an error


                      
  [RuntimeException]  
  Error Output:       
                      


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]

Also when i do php artisan migrate, i got almost the same thing

$ php artisan migrate


                                           
  [ErrorException]                         
  Invalid argument supplied for foreach()  
                                           


Content-type: text/html

Please sign in or create an account to participate in this conversation.