Cambio de migración de Laravel para hacer una columna anulable
composer require doctrine/dbal
Happy Hamerkop
composer require doctrine/dbal
Schema::table('users', function($table)
{
$table->string('name', 50)->nullable()->change();
});
This is the correct syntax to revert the migration:
$table->integer('user_id')->unsigned()->nullable(false)->change();
$table->string(/*column name*/, /*size*/)->nullable(true);