我在DigitalOcean上安装了一个全新的laravel,我试图在上面运行一个基本的"作曲家更新"。但是,每次尝试更新时,我都会看到以下错误。我无法解决这个问题,使用composer cachclear,删除vendor/compiled.php文件,甚至重新安装整个框架。
我不知道错误到底是什么,所以我有点迷路了。有什么建议吗?
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Call to undefined method Illuminate'Foundat
ion'Application::getCachedCompilePath() in /var/www/html/production/vendor/
laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.ph
p on line 28
删除vendor/compiled.php
并运行composer update。来源:https://laracasts.com/discuss/channels/general-discussion/runtimeexception-on-fresh-install?page=1