mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 10:23:30 +00:00
Move V5 source, migrations, UI, scripts, and tests into documentation, then remove V5 routes, models, jobs, configuration, dependencies, and application hooks.
19 lines
409 B
Plaintext
19 lines
409 B
Plaintext
<?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);
|
|
}
|
|
}
|