current time in laravel migration
snippet in php

created_at default value laravel

user4677

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

mysql timestamp in laravel migration

user1855

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

current time in laravel migration

user1082

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