【发布时间】:2018-07-18 04:38:46
【问题描述】:
我正在运行迁移以重命名表,但出现奇怪的错误。
public function up()
{
Schema::rename($accounts, $feeds);
}
public function down()
{
Schema::rename($feeds, $accounts);
}
错误:
Undefined variable: accounts
表肯定存在。知道可能是什么问题吗?
【问题讨论】: