'boolean', ]; public static function getActiveTest(): ?self { return self::where('environment', 'test')->first(); } public static function getActiveProduction(): ?self { return self::where('environment', 'production')->first(); } public static function getActive(bool $isTestMode = false): ?self { return $isTestMode ? self::getActiveTest() : self::getActiveProduction(); } }