public function generate($env, $example, array $app = [])
    {
        $result = false;

        $envValues = $this->getValuesFromFile($env, false);
        $exampleValues = $this->getValuesFromFile($example);
        $allValues = array_merge($exampleValues, $envValues, $app);

        $content = '';
        foreach ($allValues as $key => $value) {
            $content .= $key . '=' . $value . "\n";
        }

        if (file_put_contents($env, $content)) {
            $result = true;
        }

        return $result;
    }