Answers for "making field not null migration laravel 8"

PHP
5

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
0

default null migration laravel

$table->integer('parent_item_category_id')->nullable();
Posted by: Guest on December-03-2021

Code answers related to "making field not null migration laravel 8"

Browse Popular Code Answers by Language