public function bootstrap()
    {
        if (! class_exists(DotenvFactory::class)) {
            $this->writeErrorAndDie([
                'Unable to load the environment file!',
                'Please install "vlucas/phpdotenv:^3.3".',
            ]);
        }

        try {
            $this->createDotenv()->safeLoad();
        } catch (InvalidFileException $e) {
            $this->writeErrorAndDie([
                'The environment file is invalid!',
                $e->getMessage(),
            ]);
        }
    }
public function bootstrap()
    {
        if (! class_exists(DotenvFactory::class)) {
            $this->writeErrorAndDie([
                'Unable to load the environment file!',
                'Please install "vlucas/phpdotenv:^3.3".',
            ]);
        }

        try {
            $this->createDotenv()->safeLoad();
        } catch (InvalidFileException $e) {
            $this->writeErrorAndDie([
                'The environment file is invalid!',
                $e->getMessage(),
            ]);
        }
    }
public function bootstrap ( ) { if ( ! class_exists ( DotenvFactory :: class ) ) { $ this -> writeErrorAndDie ( [ 'Unable to load the environment file!' , 'Please install "vlucas/phpdotenv:^3.3".' , ] ) ; } try { $ this -> createDotenv ( ) -> safeLoad ( ) ; } catch ( InvalidFileException $ e ) { $ this -> writeErrorAndDie ( [ 'The environment file is invalid!' , $ e -> getMessage ( ) , ] ) ; } }
Setuup the environment variables.

If no environment file exists, we continue silently.

@return void
Setuup the environment variables .