Answers for "migration default value for coulmnlaravel"

PHP
5

laravel migration set default value

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

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

Code answers related to "migration default value for coulmnlaravel"

Browse Popular Code Answers by Language