Answers for "what is nullable in laravel migration"

PHP
3

laravel migration make column nullable

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();
Posted by: Guest on January-21-2021

Code answers related to "what is nullable in laravel migration"

Browse Popular Code Answers by Language