,我的刀片引擎運行良好。但是當我安裝簡單qrCode.via:安裝完簡單的qrcode之後,刀片引擎在安裝illuminate/html之後不能在laravel5上運行,
"require": {
"simplesoftwareio/simple-qrcode": "~1"
}
我得到這個錯誤
Class 'Illuminate\Html\HtmlServiceProvider' not found
終端的安裝後的輸出,簡單QRCode的是
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Key require is a duplicate in ./composer.json at line 53
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing illuminate/html (v5.0.0)
- Installing bacon/bacon-qr-code (1.0.1)
Downloading: 100%
- Installing simplesoftwareio/simple-qrcode (1.4.3)
Downloading: 100%
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in /home/farhad/public_html/letterPanel/laravel/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Illuminate\Html\HtmlServiceProvider' not found
Script php artisan optimize handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in /home/farhad/public_html/letterPanel/laravel/vendor/lara
vel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146
我還後此命令composer require illuminate/html
錯誤,但我得到了同樣的錯誤。 感謝先進的任何幫助
它在你的應用程序配置文件中嗎? – haakym
是的, Illuminate \ Html \ HtmlServiceProvider ::類 ,\和門面也。 –
也正確:'要求是在第53行的./composer.json中重複的' – haakym