[英]In laravel 5.4. composer update FatalThrowableError Class 'Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider' not found
I was using laravel 5.4. 我正在使用laravel 5.4。 When I tried to install a package I ran a command for composer update which leads to an error below (1/1)
当我尝试安装软件包时,我运行了Composer更新命令,导致以下错误(1/1)
Fatal Throwable Error Class 'Unisharp\\Laravelfilemanager\\LaravelFilemanagerServiceProvider' not found
找不到致命的可抛出错误类'Unisharp \\ Laravelfilemanager \\ LaravelFilemanagerServiceProvider'
Check if it helps you because it had solved my issue. 检查它是否对您有所帮助,因为它已经解决了我的问题。
Make sure you have the aliases and providers in config/app 确保您在config / app中具有别名和提供程序
and then make sure you update composer on the live server. 然后确保在实时服务器上更新composer。
You also need the config file for file manager by running 您还需要通过运行文件管理器的配置文件
php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public
The missing config file was my issue. 缺少的配置文件是我的问题。
Or Try this, put this 或尝试这个,把这个
Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider::class
above the 以上
App\Providers\RouteServiceProvider::class
in your providers 在您的提供者中
If you are on Windows, edit your php.ini file and uncomment these two lines: 如果您使用的是Windows,请编辑php.ini文件并取消注释以下两行:
extension=php_mbstring.dll
extension=php_exif.dll
then delete composer.lock file and run below code in CMD: 然后删除composer.lock文件并在CMD中运行以下代码:
Composer install
then run 然后跑
Composer dump auto-load
hope its could help :) 希望它可以帮助:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.