/bootstrap/start.php中的Laravel错误:找不到\ Illuminate \ Foundation \ Application [英] Laravel error in /bootstrap/start.php: \Illuminate\Foundation\Application not found
问题描述
因此,我在开发服务器上安装了Laravel(php5.5.3,标准安装,安装了mcrypt),并得到以下错误消息:
So, I installed Laravel on a dev server (php5.5.3, standard installation, mcrypt installed), and I get the following error message:
Fatal error: Class 'Illuminate\Foundation\Application' not found in /[path_to_laravel_app]/bootstrap/start.php on line 14
很奇怪,尽管我已经看到很多类似的错误,但我还没有看到该文件的解决方案.任何意见欢迎.谢谢!
Quite odd, and I haven't seen a solution to this file, although I've seen plenty of similar errors. Any advice welcome. Thanks!
推荐答案
/bootstrap/start.php
是在composer install
之后通过运行Laravel的php artisan optimize
创建的.在Laravel升级过程中,我遇到了很多问题,但是删除/bootstrap/start.php
,composer.lock
和vendor
目录并重新运行composer install
应该可以解决此问题.
/bootstrap/start.php
is created after composer install
by running Laravel's php artisan optimize
. I've had a lot of issues on this during upgrades of Laravel, but removing /bootstrap/start.php
, composer.lock
, and the vendor
directory and re-running composer install
should fix this issue.
这篇关于/bootstrap/start.php中的Laravel错误:找不到\ Illuminate \ Foundation \ Application的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!