duancong7573 2016-09-22 12:25
浏览 21
已采纳

作曲家更新 - 网站停止工作

I updated the Composer using cmd window and got these errors:

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Darryldecode\Cart\CartServiceProvider' not found


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


[RuntimeException]
Error Output:

The website is not online yet, and I'm running it using xampp. Now, when i'm trying to access my web site through localhost, I get this error:

FatalErrorException in ProviderRepository.php line 146: Class 'Darryldecode\Cart\CartServiceProvider' not found.

In the app.php file I have:

Darryldecode\Cart\CartServiceProvider::class,

in the Application Service Providers, and:

'Cart'      => Darryldecode\Cart\Facades\CartFacade::class,

in the aliases.

Any ideas on how to get the website back?

Thanks!

  • 写回答

1条回答 默认 最新

  • dongqindan4406 2016-09-22 12:37
    关注

    Tty this steps Temporary remove

    Darryldecode\Cart\CartServiceProvider::class,
    

    And

    'Cart'      => Darryldecode\Cart\Facades\CartFacade::class,
    

    Type command

    composer update
    

    And then add this class Because when you update composer he try to find this path before adding in your project, After updating your composer this class added in your folder

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 iOS绕地区网络检测
  • ¥15 python验证码滑块图像识别
  • ¥15 根据背景及设计要求撰写设计报告
  • ¥15 QT6颜色选择对话框显示不完整
  • ¥20 能提供一下思路或者代码吗
  • ¥15 用twincat控制!
  • ¥15 请问一下这个运行结果是怎么来的
  • ¥15 单通道放大电路的工作原理
  • ¥30 YOLO检测微调结果p为1
  • ¥15 DS18B20内部ADC模数转换器