default null migration laravel

57

laravel migration default value -

$table->increments('id');
            $table->string('name');
            $table->string('url');
            $table->string('country');
            $table->tinyInteger('status')->default('1');
            $table->timestamps();

default null migration laravel -

$table->integer('parent_item_category_id')->nullable();

Comments

Submit
0 Comments