2016-09-22 140 views
0

我使用cmd窗口更新作曲家,並得到這些錯誤:作曲更新 - 網站停止工作

[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運行它。 現在,當我試圖通過本地主機訪問我的網站,我得到這個錯誤:

FatalErrorException在ProviderRepository.php行146: 班「Darryldecode \車\ CartServiceProvider找不到。

在app.php文件我有:

Darryldecode\Cart\CartServiceProvider::class, 
在應用服務提供商

,並:

'Cart'  => Darryldecode\Cart\Facades\CartFacade::class, 
的別名

關於如何獲取網站的任何想法?

謝謝!

+0

首先:檢查文件是否存在! 然後:如果不檢查是否添加條目到'composer.json' 最後:註釋這一行'Darryldecode \ Cart \ CartServiceProvider :: class,'並運行'composer update' –

回答

1

佩蒂這個步驟 臨時刪除

Darryldecode\Cart\CartServiceProvider::class, 

而且

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

類型命令

composer update 

,然後添加這個類 因爲當你更新的作曲家,他試圖找到這在添加到您的項目之前的路徑,在upda之後將你的作曲家添加到你的文件夾中