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

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

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀