我尝试在 laravel 4 中通过 PHP artisan migrate 命令将数据加载到数据库。但终端抛出以下错误:
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","me
ssage":"在非对象上调用成员函数increments()","file":"C:\xamp p\htdocs\lartut\lartut\app\database\migrations\2014_04_17_072025_create-u sers-table.php","line":15}}
不知道是什么导致了这个错误。有人可以帮我解决这个问题吗?
最佳答案
这解决了我的问题。
我用过
php artisan migrate:install
在迁移表之前。它起作用了............
关于php - Laravel artisan 迁移错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23127150/