Answers for "how change default value for enum for laravel migration"

PHP
6

laravel migration set default value

$table->string('name')->default('Hello World!');
Posted by: Guest on May-12-2020
3

laravel migration default value

$table->increments('id');
            $table->string('name');
            $table->string('url');
            $table->string('country');
            $table->tinyInteger('status')->default('1');
            $table->timestamps();
Posted by: Guest on July-20-2021
0

how change default value for enum colun in laravel

$table->enum('status',['new', 'active', 'disabled'])->default('active');
Posted by: Guest on February-04-2022

Code answers related to "how change default value for enum for laravel migration"

Browse Popular Code Answers by Language