current time in laravel migration

48

mysql timestamp in laravel migration -

$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));

created_at default value laravel -

$table->timestamp('created_at')->useCurrent();

Comments

Submit
0 Comments