migrations date now code example
Example 1: created_at default value laravel
$table->timestamp('created_at')->useCurrent();
Example 2: mysql timestamp in laravel migration
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
$table->timestamp('created_at')->useCurrent();
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));