简体   繁体   English

laravel 5 .. ubuntu ..命令行

[英]laravel 5 .. ubuntu .. command line

I am working using laravel5 php framework on ubuntu and I have 2 problems 我在ubuntu上使用laravel5 php框架工作,我有2个问题

1- when I try to use the composer to require anything .. it doesnt work 2- when i tried to make some changes to illuminate/Html .. it doesn't work too so after that when i tried to use the artisan to serve my project I got that error 1-当我尝试使用作曲家要求任何东西..它不起作用2-当我试图对illumination / 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}

Just run the following in your composer 只需在作曲家中运行以下命令

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

Inside your config/app.php add the following codes inside it 在您的config / app.php内部添加以下代码

In the 'providers' => [ ..] 在“提供者”中=> [..]

'Illuminate\Html\HtmlServiceProvider',

And in the 而在

'aliases' => [ ..] '别名'=> [..]

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

And then refresh the page you should find that it should be working. 然后刷新页面,您应该发现它应该可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM