首页 文章

调用未定义的方法照亮数据库模式blueprint :: blob()

提问于
浏览
1

我是laravel 5的新手,在我第一次尝试迁移时,我遇到了这个错误:

[Symfony \ Component \ Debug \ Exception \ FatalErrorException]调用未定义的方法Illuminate \ Database \ Schema \ Blueprint :: blob()

1 回答

  • 0

    没有这样的方法 blob() . 这是binary()

    $table->binary('data'); // BLOB equivalent for the database
    

相关问题