Answers for "how to set current date as default value in migration laravel 8"

PHP
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
1

laravel migration add datetime column with default

$table->timestamp('column_name')->useCurrent();
Posted by: Guest on November-27-2020

Code answers related to "how to set current date as default value in migration laravel 8"

Browse Popular Code Answers by Language