JonathanTorres\Construct\Construct::environmentFiles PHP Method

environmentFiles() protected method

Generate .env environment files and add package to the development requirements.
protected environmentFiles ( ) : void
return void
    protected function environmentFiles()
    {
        $this->developmentRequirements[] = 'vlucas/phpdotenv';
        $this->file->copy(__DIR__ . '/stubs/env.stub', $this->projectLower . '/' . '.env');
        $this->file->copy(__DIR__ . '/stubs/env.stub', $this->projectLower . '/' . '.env.example');
        $this->exportIgnores[] = '.env';
        $this->gitIgnores[] = '.env';
    }