class
Illuminate
/
Foundation
/
Bootstrap
/
LoadEnvironmentVariables
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
LoadEnvironmentVariables
Methods
public
bootstrap ( Application $app ) : void
Bootstrap the given application.
Parameters
- $app Application
protected
checkForSpecificEnvironmentFile ( $app ) : void
Detect if a custom environment file matching the APP_ENV exists.
Parameters
- $app Application
protected
setEnvironmentFilePath ( $app , $file ) : bool
Load a custom environment file.
Parameters
- $app Application
- $file string
protected
createDotenv ( $app ) : Dotenv\Dotenv
Create a Dotenv instance.
Parameters
- $app Application
protected
writeErrorAndDie ( Dotenv\...\InvalidFileException $e ) : void
Write the error information to the screen and exit.
Parameters
- $e Dotenv\...\InvalidFileException