这是我的Laravel错误:
FatalErrorException in compiled.php line 6376:
Class 'Illuminate\Html\HtmlServiceProvider' not found
in compiled.php line 6376
at HandleExceptions->fatalExceptionFromError(array('type' => '1', 'message' => 'Class 'Illuminate\Html\HtmlServiceProvider' not found', 'file' => '/home/nl/Laravel/storage/framework/compiled.php', 'line' => '6376')) in compiled.php line 1721
at HandleExceptions->handleShutdown()
我的控制台错误:
Generating autoload files
PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in /home
/nl/Laravel/storage/framework/compiled.php on line 6376
PHP Stack trace:
PHP 1. {main}() /home/nl/Laravel/artisan:0
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /home/nl/Laravel/artisan
:36
PHP 3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/nl/Laravel/vend
or/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:92
PHP 4. Illuminate\Foundation\Application->bootstrapWith() /home/nl/Laravel/ven
dor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:195
PHP 5. Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() /home/nl
/Laravel/storage/framework/compiled.php:1307
PHP 6. Illuminate\Foundation\Application->registerConfiguredProviders() /home/
nl/Laravel/storage/framework/compiled.php:1758
PHP 7. Illuminate\Foundation\ProviderRepository->load() /home/nl/Laravel/stora
ge/framework/compiled.php:1404
PHP 8. Illuminate\Foundation\ProviderRepository->compileManifest() /home/nl/La
ravel/storage/framework/compiled.php:6338
PHP 9. Illuminate\Foundation\ProviderRepository->createProvider() /home/nl/Lar
avel/storage/framework/compiled.php:6362
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Th
e stream or file "/home/nl/Laravel/storage/logs/laravel-2015-04-20.log" could no
t be opened: failed to open stream: Permission denied' in /home/nl/Laravel/stora
ge/framework/compiled.php:12372
Stack trace:
#0 /home/nl/Laravel/storage/framework/compiled.php(12431): Monolog\Handler\Strea
mHandler->write(Array)
#1 /home/nl/Laravel/storage/framework/compiled.php(12313): Monolog\Handler\Rotat
ingFileHandler->write(Array)
#2 /home/nl/Laravel/storage/framework/compiled.php(12081): Monolog\Handler\Abstr
actProcessingHandler->handle(Array)
#3 /home/nl/Laravel/storage/framework/compiled.php(12179): Monolog\Logger->addRe
cord(400, 'exception 'Symf...', Array)
#4 /home/nl/Laravel/vendor/laravel/framework/src/Illuminate/Foundation/Exception
s/Handler.php(47): Monolog\Logger->error('exception 'Symf...')
#5 /home/nl/Laravel/app/Exceptions/Handler.php(27): Illuminate\Foundation\Except
ions\Handler->report(Object(Symfony\Component\Debug\Exception\FatalErrorExceptio
n))
#6 in /home/nl/Laravel/storage/framework/compiled.php on line 12372
PHP Stack trace:
PHP 1. {main}() /home/nl/Laravel/artisan:0
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /home/nl/Laravel/artisan
:36
PHP 3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/nl/Laravel/vend
or/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:92
PHP 4. Illuminate\Foundation\Application->bootstrapWith() /home/nl/Laravel/ven
dor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:195
PHP 5. Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() /home/nl
/Laravel/storage/framework/compiled.php:1307
PHP 6. Illuminate\Foundation\Application->registerConfiguredProviders() /home/
nl/Laravel/storage/framework/compiled.php:1758
PHP 7. Illuminate\Foundation\ProviderRepository->load() /home/nl/Laravel/stora
ge/framework/compiled.php:1404
PHP 8. Illuminate\Foundation\ProviderRepository->compileManifest() /home/nl/La
ravel/storage/framework/compiled.php:6338
PHP 9. Illuminate\Foundation\ProviderRepository->createProvider() /home/nl/Lar
avel/storage/framework/compiled.php:6362
Script php artisan clear-compiled handling the post-update-cmd event returned wi
th an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider'
not found in /home/nl/Laravel/storage/framework/compiled.php on line 6376
PHP Stack trace:
PHP 1. {main}() /home/nl/Laravel/artisan:0
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /home/nl/Laravel/ar
tisan:36
PHP 3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/nl/Laravel
/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:92
PHP 4. Illuminate\Foundation\Application->bootstrapWith() /home/nl/Larave
l/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:195
PHP 5. Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() /ho
me/nl/Laravel/storage/framework/compiled.php:1307
PHP 6. Illuminate\Foundation\Application->registerConfiguredProviders() /
home/nl/Laravel/storage/framework/compiled.php:1758
PHP 7. Illuminate\Foundation\ProviderRepository->load() /home/nl/Laravel/
storage/framework/compiled.php:1404
PHP 8. Illuminate\Foundation\ProviderRepository->compileManifest() /home/
nl/Laravel/storage/framework/compiled.php:6338
PHP 9. Illuminate\Foundation\ProviderRepository->createProvider() /home/n
l/Laravel/storage/framework/compiled.php:6362
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with messag
e 'The stream or file "/home/nl/Laravel/storage/logs/laravel-2015-04-20.log
" could not be opened: failed to open stream: Permission denied' in /home/n
l/Laravel/storage/framework/compiled.php:12372
Stack trace:
#0 /home/nl/Laravel/storage/framework/compiled.php(12431): Monolog\Handler\
StreamHandler->write(Array)
#1 /home/nl/Laravel/storage/framework/compiled.php(12313): Monolog\Handler\
RotatingFileHandler->write(Array)
#2 /home/nl/Laravel/storage/framework/compiled.php(12081): Monolog\Handler\
AbstractProcessingHandler->handle(Array)
#3 /home/nl/Laravel/storage/framework/compiled.php(12179): Monolog\Logger->
addRecord(400, 'exception 'Symf...', Array)
#4 /home/nl/Laravel/vendor/laravel/framework/src/Illuminate/Foundation/Exce
ptions/Handler.php(47): Monolog\Logger->error('exception 'Symf...')
#5 /home/nl/Laravel/app/Exceptions/Handler.php(27): Illuminate\Foundation\E
xceptions\Handler->report(Object(Symfony\Component\Debug\Exception\FatalErr
orException))
#6 in /home/nl/Laravel/storage/framework/compiled.php on line 12372
PHP Stack trace:
PHP 1. {main}() /home/nl/Laravel/artisan:0
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /home/nl/Laravel/ar
tisan:36
PHP 3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/nl/Laravel
/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:92
PHP 4. Illuminate\Foundation\Application->bootstrapWith() /home/nl/Larave
l/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:195
PHP 5. Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() /ho
me/nl/Laravel/storage/framework/compiled.php:1307
PHP 6. Illuminate\Foundation\Application->registerConfiguredProviders() /
home/nl/Laravel/storage/framework/compiled.php:1758
PHP 7. Illuminate\Foundation\ProviderRepository->load() /home/nl/Laravel/
storage/framework/compiled.php:1404
PHP 8. Illuminate\Foundation\ProviderRepository->compileManifest() /home/
nl/Laravel/storage/framework/compiled.php:6338
PHP 9. Illuminate\Foundation\ProviderRepository->createProvider() /home/n
l/Laravel/storage/framework/compiled.php:6362
我引用this tutorial,并遵循以下步骤:
1。"照亮/ html":" 5. *"
2.Run:作曲家更新
3.添加到app.php providers数组:
'Illuminate\Html\HtmlServiceProvider',
4.添加到app.php别名数组:
'的Html' => '照亮\ HTML \ HtmlFacade&#39 ;, '表' => '照亮\ HTML \ FormFacade',
但仍然无效,有人可以给出一些建议吗?
答案 0 :(得分:2)
我发现作曲家需要的那个库存在一些问题 - 尝试更改:
"illuminate/Html" : "5.0.*"
要..
"Illuminate/Html": "5.0.*@dev"
在laravel项目根目录中的composer.json中。
答案 1 :(得分:1)
我解决了这个问题,解决了这个问题并写了一篇关于它的博客。要使用laravel html帮助器,你需要在composesr.josn文件中需要这个依赖项,并且需要这些文件。对于完整的过程,请遵循这个URL {{3 }}