我正在设置新服务器,并希望将项目从 Laravel 4.0版迁移到Laravel 5.2
我遵循了该网址Upgrading from Laravel 4 to Laravel 5中提到的步骤 但按照所有步骤操作后,出现错误
[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Class name must be a valid object or a string
Exception trace:
() at /home/vagrant/work/laravel/vendor/zizaco/entrust/src/commands/MigrationCommand.php:86
Zizaco\Entrust\MigrationCommand->createMigration() at /home/vagrant/work/laravel/vendor/zizaco/entrust/src/commands/MigrationCommand.php:58
Zizaco\Entrust\MigrationCommand->fire() at n/a:n/a
call_user_func_array() at /home/vagrant/work/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:507
Illuminate\Container\Container->call() at /home/vagrant/work/laravel/vendor/laravel/framework/src/Illuminate/Console/Command.php:169
Illuminate\Console\Command->execute() at /home/vagrant/work/laravel/vendor/symfony/console/Command/Command.php:256
Symfony\Component\Console\Command\Command->run() at /home/vagrant/work/laravel/vendor/laravel/framework/src/Illuminate/Console/Command.php:155
Illuminate\Console\Command->run() at /home/vagrant/work/laravel/vendor/symfony/console/Application.php:791
Symfony\Component\Console\Application->doRunCommand() at /home/vagrant/work/laravel/vendor/symfony/console/Application.php:186
Symfony\Component\Console\Application->doRun() at /home/vagrant/work/laravel/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at /home/vagrant/work/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107
Illuminate\Foundation\Console\Kernel->handle() at /home/vagrant/work/laravel/artisan:35
可能是什么原因?
答案 0 :(得分:1)
帮自己一个忙并使用Laravel Shift。将 Laravel 4.2 升级到 Laravel 5.0 Laravel 5.0 Shift 自动从 Laravel 4.2 升级到 Laravel 5.0。使用 Laravel 5.0 Shift 自动升级您的 Laravel 应用程序估计可以节省超过 6 小时的时间。