created_at default value laravel

92

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