本文介绍了Laravel 5没有找到类'形式'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了illuminate / html:5. *到composer.json并运行composer update。

I have added "illuminate/html": "5.*" to composer.json and ran "composer update".

  - Installing illuminate/html (v5.0.0)
    Loading from cache

我在网站的根目录中运行了这个命令。我修改了/root/.composer ..中的composer.json文件,并且在项目的根目录中修改了这两个文件。

I ran this command in the root of the website. I modified the composer.json file in /root/.composer.. and in the root of the project and neither have made a difference.

这下载了类似乎安装。我添加了以下到config / app.php

This downloaded the class and it seemed to install. I have added the following to config/app.php

    'Illuminate\Html\HtmlServiceProvider',

    'Form'      => 'Illuminate\Html\FormFacade',
    'Html'      => 'Illuminate\Html\HtmlFacade',

我想我有一个想法是什么错了,我不知道如何解决它。我的安装在'/ var / www / website'。我已检查文件路径,并且Html文件夹不存在。

I think i have an idea what is wrong, but i dont know how to fix it. My install is in '/var/www/website'. I have checked the file path and the Html folder does not exist.

"/var/www/website/vendor/laravel/framework/src/Illuminate/Html"

我能够找到类文件,但在不同的目录。

i was able to find the class files but in a different directory.

"/var/www/website/vendor/illuminate/html"

我手动将文件复制到主要的laravel照明/ html文件夹,但这也没有工作。

I manually copied the files over to the main laravel illuminate/html folder, but this hasn't worked either.

推荐答案

这可能不是你要找的答案,但我建议使用现在社区维护的存储库作为主要存储库已被弃用。

This may not be the answer you're looking for, but I'd recommend using the now community maintained repository Laravel Collective Forms & HTML as the main repositories have been deprecated.

这篇关于Laravel 5没有找到类'形式'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:06