7 laravel composer-php laravel-4 artisan artisan-migrate
最近我在本地清理了我的表格,这导致我删除了"匹配"表.我现在因此而在生产服务器上收到错误.
在本地,我跑了php artisan migrate:reset,删除了'CreateMatchesTable'文件然后php artisan migrate:refresh --seed.这在本地工作,然后我将我最近的构建推送到服务器.
现在,每当我php artisan migrate:refresh --seed在生产服务器上运行时,我都会遇到以下错误:
PHP Fatal error: Class 'CreateMatchesTable' not found in
/home/forge/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php
on line 301
PHP Stack trace:
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException",
"message":"Class 'CreateMatchesTable' not found","file":"\/home\/forge
\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Migrations\/
Migrator.php","line":301}}
Run Code Online (Sandbox Code Playgroud)
我已经读过其他人经历过这种情况并且我已经尝试过composer dump-autoload- 但问题仍然存在.
此外,php artisan dump-autoload不幸的是,我提出了这个错误:
Generating optimized class loader
Compiling common classes
[ErrorException]
Array to string conversion
dump-autoload
Run Code Online (Sandbox Code Playgroud)
我已经删除了该站点并回滚了Laravel Forge上的迁移,但是,当它将最新版本提取到Forge时,会发生此错误!
| 归档时间: |
|
| 查看次数: |
4808 次 |
| 最近记录: |