简体   繁体   中英

Laravel - re-installing app : 'ServiceProvider not found'

I tried to upgrade my app from 5.1 to 5.2 & ran into some issues. I needed my app back in a working state so i re-uploaded the old version I had backed up on my system. However it is still not working as it was before and Im getting this error :

FatalErrorException in ProviderRepository.php line 146: Class 'Lavary\Menu\ServiceProvider' not found

the same error appears when trying to run any composer commands

$ composer update
> php artisan clear-compiled



  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Fatal error: Class 'Lavary\Menu\ServiceProvider' not found



Script php artisan clear-compiled handling the pre-update-cmd event returned with an error


  [RuntimeException]
  Error Output:


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

Lavary软件包存在问题。尝试再次配置。

I used:

composer update --no-scripts

& its working without error now.

我有一个建议,请尝试从“提供程序”部分的config / app.php中删除Lavary \\ Menu \\ ServiceProvider,然后运行composer,安装软件包Lavary,然后将此行添加回app \\ config.php文件中。

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