src/ApplicationEnv.php
public function is(string $env): bool
    {
        return $this->env === $env || str_starts_with($this->env, "$env.");
    }
public function is(string $env): bool
    {
        return $this->env === $env || str_starts_with($this->env, "$env.");
    }
public function is ( string $ env ) : bool { return $ this -> env === $ env || str_starts_with ( $ this -> env , "$env." ) ; }
Check if environment matches or is a parent.

@param string $env
@return bool
Check if environment matches or is a parent .