在bootstrap/compiled.php中找不到Laravel 4 Class

Ben*_*rne 3 composer-php laravel-4

我使用Git创建了一个新的分支,对我的代码应用了一些更新,在我的登台服务器上检查了该分支,现在我无法运行任何与编辑器相关的东西.

我已经为composer.json添加了一些新的软件包,这些软件包可以在我的开发环境中运行,但是当我尝试composer update登台环境时,我发现类没有找到与尚未下载的类有关的错误.

我试过了

composer update
composer dump-autoload
php artisan clear-compiled
php artisan dump-autoload
php artisan optimize
Run Code Online (Sandbox Code Playgroud)

但都会导致以下错误

PHP Fatal error:  Class 'Artdarek\OAuth\OAuthServiceProvider' not found in 
/var/www/sites/x/bootstrap/compiled.php on line 4321

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

[RuntimeException]
Error Output: PHP Fatal error:  Class 'Artdarek\OAuth\OAuthServiceProvider'
  not found in /var/www/sites/x/bootstrap/compiled.php
  on line 4321
Run Code Online (Sandbox Code Playgroud)

还有什么可以让作曲家下载新文件?

Zia*_*lal 10

php artisan optimize --force
Run Code Online (Sandbox Code Playgroud)

该命令将重新生成 /bootstrap/compiled.php

--force需要ARG当你的环境是在调试模式下重新生成的文件.