得到错误“类'Illuminate \ Foundation \ Application'";在laravel 5.1中找不到 [英] getting error "Class 'Illuminate\Foundation\Application" not found in laravel 5.1
问题描述
首先..抱歉我的英语不好.
First of all..sorry for my bad english.
我在本地主机上安装了laravel 5的新副本,并配置了其 database.php 和 .env 文件.运行良好.
I installed a fresh copy of laravel 5 on my localhost and configured its database.php and .env file. it was running well.
之后,我添加了(如此处所述 https://laravelcollective.com/docs/5.1/html )
After that i added (as stated here https://laravelcollective.com/docs/5.1/html)
"require": {
"laravelcollective/html": "5.1.*"
}
在我的 composer.json 中.从终端更新了Composer:
in my composer.json And. updated Composer from the Terminal:
composer update
接下来,当我运行我的页面时,它出现以下致命错误:
Next, When i am running my page, it gives following fatal error:
致命错误:在第14行的C:\ xampp \ htdocs \ TodoApp \ bootstrap \ app.php中找不到类'Illuminate \ Foundation \ Application'
Fatal error: Class 'Illuminate\Foundation\Application' not found in C:\xampp\htdocs\TodoApp\bootstrap\app.php on line 14
推荐答案
我想您应该按照这种方式包括html帮助程序
I guess you shall follow this way to include your html helper
"require": {
"laravelcollective/html": "5.1"
}
然后做
composer update
然后在您的config/app.php
根据您的laravel版本,我建议您遵循此
I recommend you to follow this according to your laravel version
注意:
Don't edit your autoload like this
这篇关于得到错误“类'Illuminate \ Foundation \ Application'";在laravel 5.1中找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!