time in laravel migration code example
Example 1: mysql timestamp in laravel migration
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Example 2: current time in laravel migration
$table->timestamp('column_name')->useCurrent();
Example 3: how to use datetime.now in migration laravel
Laravel Migration Datetime Now