在laravel迁移中,我们一般知道把一个字段设置为空,可以通过
$table->column->nullable()->change();
那么,把一个空字段改成非空字段呢,
$table->column->nullable(false)->change();