【问题标题】:call to undefined method illuminate database schema blueprint::blob()调用未定义的方法阐明数据库模式 blueprint::blob()
【发布时间】:2016-08-28 18:04:27
【问题描述】:

我是 laravel 5 的新手,在我的第一个项目中,当我尝试迁移它时,我收到了这个错误:

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

【问题讨论】:

  • 也许你应该使用 binary() 而不是 blob()。不是吗?

标签: laravel


【解决方案1】:

没有这种方法blob()。我是binary():

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

【讨论】:

    猜你喜欢
    • 2020-08-30
    • 2014-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-01
    • 1970-01-01
    • 2021-07-09
    相关资源
    最近更新 更多