简体   繁体   中英

laravel 5 .. ubuntu .. command line

I am working using laravel5 php framework on ubuntu and I have 2 problems

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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