[英]laravel 5 .. ubuntu .. command line
我在ubuntu上使用laravel5 php框架工作,我有2個問題
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}
只需在作曲家中運行以下命令
composer require "illuminate/html":"5.0.*"
在您的config / app.php內部添加以下代碼
在“提供者”中=> [..]
'Illuminate\Html\HtmlServiceProvider',
而在
'別名'=> [..]
'Form'=> 'Illuminate\Html\FormFacade',
'HTML'=> 'Illuminate\Html\HtmlFacade',
然后刷新頁面,您應該發現它應該可以工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.