Laravel Cartalyst Sentinel无法回滚迁移

时间:2015-10-08 08:52:03

标签: laravel laravel-4 migration cartalyst-sentinel

我无法回滚所有迁移。 当我正在运行php artisan migrate:reset我的所有迁移都会回滚,除了Sentinel。我收到以下错误:

PHP Fatal error:  Class 'MigrationCartalystSentinel' not found in /home/vagrant/Projects/MuzzaLife/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php on line 301
PHP Stack trace:
PHP   1. {main}() /home/vagrant/Projects/MuzzaLife/artisan:0
PHP   2. Symfony\Component\Console\Application->run() /home/vagrant/Projects/MuzzaLife/artisan:59
PHP   3. Symfony\Component\Console\Application->doRun() /home/vagrant/Projects/MuzzaLife/vendor/symfony/console/Symfony/Component/Console/Application.php:124
PHP   4. Symfony\Component\Console\Application->doRunCommand() /home/vagrant/Projects/MuzzaLife/vendor/symfony/console/Symfony/Component/Console/Application.php:193
PHP   5. Illuminate\Console\Command->run() /home/vagrant/Projects/MuzzaLife/vendor/symfony/console/Symfony/Component/Console/Application.php:889
PHP   6. Symfony\Component\Console\Command\Command->run() /home/vagrant/Projects/MuzzaLife/vendor/laravel/framework/src/Illuminate/Console/Command.php:100
PHP   7. Illuminate\Console\Command->execute() /home/vagrant/Projects/MuzzaLife/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:253
PHP   8. Illuminate\Database\Console\Migrations\ResetCommand->fire() /home/vagrant/Projects/MuzzaLife/vendor/laravel/framework/src/Illuminate/Console/Command.php:112
PHP   9. Illuminate\Database\Migrations\Migrator->rollback() /home/vagrant/Projects/MuzzaLife/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/ResetCommand.php:61
PHP  10. Illuminate\Database\Migrations\Migrator->runDown() /home/vagrant/Projects/MuzzaLife/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:172
PHP  11. Illuminate\Database\Migrations\Migrator->resolve() /home/vagrant/Projects/MuzzaLife/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:192
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'MigrationCartalystSentinel' not found","file":"\/home\/vagrant\/Projects\/MuzzaLife\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Migrations\/Migrator.php","line":301}}vagrant@homestead:~/Projects/MuzzaLife$ 

重置所有迁移的正确程度包括Cartalyst Sentinel?

1 个答案:

答案 0 :(得分:2)

以下命令应解决问题:

composer dump-autoload