得到错误“类'Illuminate \ Foundation \ Application'";在laravel 5.1中找不到 [英] getting error "Class 'Illuminate\Foundation\Application" not found in laravel 5.1

查看:125
本文介绍了得到错误“类'Illuminate \ Foundation \ Application'";在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屋!

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