Add default current timestamp to Laravel migration

Submitted by Mahmoud_Zalt - 3 years ago

adding default current timestamp.

$table->timestamp(’something_at')->default(DB::raw('CURRENT_TIMESTAMP'));
comments powered by Disqus