【问题标题】:laravel 5 .. ubuntu .. command linelaravel 5 .. ubuntu .. 命令行
【发布时间】:2015-08-06 04:46:15
【问题描述】:

我在 ubuntu 上使用 laravel5 php 框架,我有 2 个问题

1-当我尝试使用作曲家来要求任何东西时..它不起作用 2-当我尝试对照明/Html 进行一些更改时 .. 它也不起作用 所以在那之后,当我尝试使用工匠来服务我的项目时,我得到了那个错误

PHP Fatal error:  Class 'Illuminate\Html\HtmlServiceProvider' not found in /home/shaimaa/Sites/Laravel5/eoswdt/storage/framework/compiled.php on line 5617
exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Illuminate\Html\HtmlServiceProvider' not found' in /home/shaimaa/Sites/Laravel5/eoswdt/storage/framework/compiled.php:5617
Stack trace:
#0 /home/shaimaa/Sites/Laravel5/eoswdt/storage/framework/compiled.php(1500): Illuminate\Foundation\Bootstrap\HandleExceptions->fatalExceptionFromError(Array)
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
#2 {main}

【问题讨论】:

标签: php html laravel-5 ubuntu-14.04


【解决方案1】:

只需在您的作曲家中运行以下命令

composer require "illuminate/html":"5.0.*"

在你的 config/app.php 里面添加下面的代码

在“提供者”=> [ ..]

'Illuminate\Html\HtmlServiceProvider',

而在

'别名' => [ ..]

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

然后刷新页面你应该会发现它应该可以工作了。

【讨论】:

    猜你喜欢
    • 2015-04-20
    • 2015-07-04
    • 2022-12-15
    • 2016-09-11
    • 2015-06-30
    • 1970-01-01
    • 2016-11-14
    • 2016-01-26
    • 1970-01-01
    相关资源
    最近更新 更多