Files
coolify/app/Support/V5/V5Feature.php
Andras Bacsai d0247d3b09 feat(v5): gate V5 to development environments only
Introduce V5Feature and config so V5 routes, jobs, commands, morph maps,
and model queries run only when enabled. Move V5 migrations to
migrations-v5 (loaded only when enabled), remove Flux from production
Docker/install paths, and add isolation tests.
2026-07-19 11:44:12 +02:00

19 lines
409 B
PHP

<?php
namespace App\Support\V5;
class V5Feature
{
private const DEVELOPMENT_ENVIRONMENTS = ['local', 'development', 'dev', 'testing'];
public static function enabled(): bool
{
return (bool) config('v5.enabled');
}
public static function enabledForEnvironment(string $environment): bool
{
return in_array($environment, self::DEVELOPMENT_ENVIRONMENTS, true);
}
}