Znacznik czasu MySQL w migracji Laravel
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Clever Corncrake
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
$table->timestamp('created_at')->useCurrent();
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
$table->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'));
$table->timestamp('created_at')->useCurrent();
// For Laravel 8+ you can also use:
$table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate();