簡體   English   中英

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

[英]Composer update - website stopped working

我使用cmd窗口更新了Composer並收到以下錯誤:

[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:

該網站尚未在線,我正在使用xampp運行它。 現在,當我嘗試通過本地主機訪問我的網站時,出現此錯誤:

ProviderRepository.php第146行中的FatalErrorException:找不到類'Darryldecode \\ Cart \\ CartServiceProvider'。

在app.php文件中,我有:

Darryldecode\Cart\CartServiceProvider::class,

在應用程序服務提供商中,以及:

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

在別名中。

有關如何恢復網站的任何想法?

謝謝!

要執行此步驟暫時刪除

Darryldecode\Cart\CartServiceProvider::class,

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

鍵入命令

composer update

然后添加此類,因為當您更新作曲家時,他嘗試在添加項目之前找到此路徑,在更新作曲家后,此類已添加到您的文件夾中

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM