php - Laravel artisan 迁移错误

标签 php mysql windows laravel-4

我尝试在 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/

相关文章:

mysql - 在sql中查找日期范围的最小值和最大值

PHP/MYSQL 返回不正确的结果 - MYSQL WHERE 子句

php - 使用 PHP 连接到远程 MySQL 服务器

windows - 如何在 Windows 下使用特定的 PATH 安装 tomcat?

php - 使用外键从第二个表获取值

php - 无法访问 Laravel 中的环境变量

php - 为什么论坛数据库不在 3rd NF 中?

php - 获取用户出生日期? PHP MySQL

Java 无法识别一台计算机上日志文件中的换行符\n

windows - 如何仅回显 "on"或 "off"文本?