在迁移过程中,我向表中添加了一个字段,我希望允许该字段为NULL,但也希望它默认为NULL.我应该在默认方法中放置什么?我担心放入"NULL"
会试图放入我显然不想要的字符串NULL
.请帮忙:)
Schema::table('item_categories', function(Blueprint $table)
{
$table->integer('parent_item_category_id')->unsigned()->nullable()->default($what_to_put here);
});