我编译了Laravel 4的新安装,我在生成迁移并尝试通过artisan迁移后出现此错误:
PHP致命错误:在第22行的/home/casey/Sites/caseyhoffmann.me/laravel4/app/database/migrations/2013_10_22_232234_create_users_table.php中调用未定义的方法Illuminate \ Database \ Schema \ Blueprint :: int(){“error “:{”type“:”Symfony \ Component \ Debug \ Exception \ FatalErrorException“,”message“:”调用未定义的方法Illuminate \ Database \ Schema \ Blueprint :: int()“,”file“:”/ home /凯西/站点/ caseyhoffmann.me / laravel4 /应用程序/数据库/迁移/ 2013_10_22_232234_create_users_table.php”, “行”:22}}
我试过重新编译Laravel但无济于事 .
有什么想法或建议吗?
1 回答
您的
int
()应在迁移文件中替换为integer()
. 像这样: