Answers for "create datetime column and set default now in laravel"

PHP
2

laravel date default now

$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Posted by: Guest on February-26-2021

Code answers related to "create datetime column and set default now in laravel"

Browse Popular Code Answers by Language