2017-04-04 113 views
1

我想在我的生產服務器上運行的項目和composer update我不斷收到此錯誤:Laravel:類應用程序控制檯命令 BlockModelsDidNotShowUp不存在

Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Nothing to install or update 
Generating autoload files 
> Illuminate\Foundation\ComposerScripts::postUpdate 
> php artisan optimize 


    [ReflectionException] 
    Class App\Console\Commands\BlockModelsDidNotShowUp does not exist 


Script php artisan optimize handling the post-update-cmd event returned with error code 1 

此之前,我有一個權限被拒絕錯誤,因爲/storage/logs/laravel.log file - 我已經更新了該文件的權限,並且不斷收到上面的錯誤。

我試過this,但我沒有bootstrap/cache/compiled.php文件。

+1

嘗試'composer dump-autoload'並重新運行;可能會解決它 –

回答

1

如果你刪除了這個類,只需清除緩存中:

php artisan clear-compiled 

或手動刪除bootstrap/cache/services.php文件。

+1

謝謝!這工作:) – omerowitz

相關問題