/bootstrap/start.php中的Laravel错误:找不到\ Illuminate \ Foundation \ Application [英] Laravel error in /bootstrap/start.php: \Illuminate\Foundation\Application not found

查看:597
本文介绍了/bootstrap/start.php中的Laravel错误:找不到\ Illuminate \ Foundation \ Application的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我在开发服务器上安装了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.phpcomposer.lockvendor目录并重新运行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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆