Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

409 B
Raw Blame
<?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);
    }
}