1
我是新来laravel 5,在我的第一个项目,当我尝试迁移此我得到这个错误:调用未定义的方法照亮数据库架构蓝图:: BLOB()
[Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Database\Schema\Blueprint::blob()
我是新来laravel 5,在我的第一个项目,当我尝试迁移此我得到这个错误:调用未定义的方法照亮数据库架构蓝图:: BLOB()
[Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Database\Schema\Blueprint::blob()
有没有这样的方法blob()
。它是binary()
:
$table->binary('data'); // BLOB equivalent for the database
也许你应该使用binary()而不是blob()。不是吗? – Ahmad