Answers for "laravel nullable column"

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
1

laravel change column

Schema::table('users', function (Blueprint $table) {
    $table->string('name', 50)->nullable()->change();
});
Posted by: Guest on April-02-2020
2

migrations required field laravel

$table->string('foo')->nullable(false)->change();
Posted by: Guest on May-07-2020
3

laravel migration integer

$table->bigInteger('votes');
Posted by: Guest on May-22-2020

Code answers related to "laravel nullable column"

Browse Popular Code Answers by Language