Answers for "laravel default user migration with data"

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 "laravel default user migration with data"

Browse Popular Code Answers by Language