Menu

## EnvResolver
in package
Uses PathsTrait

EnvResolver.php : 8

### Table of Contents

#### Properties

$dotenv : Dotenv
$env : Arrayable
  Resolved environment variables
$path : mixed|string

#### Methods

__construct() : mixed
appRoot() : string
  The root folder of the application.
envPath() : string
getEnv() : Arrayable
  Get the environment variables
getEnvFilePath() : string
  Get the environment file path
getEnvKeys() : mixed
loadEnv() : void
  Load the environment variables
mediaPath() : string
  The path to the resources directory.
phpPath() : string
phpVersion() : string
publicPath() : string
  The directory where the frontend assets are stored.
resolveDatabaseConfigs() : void

### Properties

#### $dotenv

EnvResolver.php : 15
`public Dotenv $dotenv`

#### $env

EnvResolver.php : 14

Resolved environment variables

`private Arrayable $env`

#### $path

EnvResolver.php : 20
`private mixed|string $path`

### Methods

#### __construct()

EnvResolver.php : 23
`public __construct([string|null $path = 'environment' ]) : mixed`

##### Parameters

$path : string|null = 'environment'

#### appRoot()

PathsTrait.php : 32

The root folder of the application.

`public appRoot([string|null $path = null ][, int $levels = 3 ]) : string`

##### Parameters

$path : string|null = null
$levels : int = 3

##### Return values

string

#### envPath()

PathsTrait.php : 50
`public envPath([string|null $path = null ]) : string`

##### Parameters

$path : string|null = null

##### Return values

string

#### getEnv()

EnvResolver.php : 68

Get the environment variables

`public getEnv() : Arrayable`

##### Return values

Arrayable

#### getEnvFilePath()

EnvResolver.php : 58

Get the environment file path

`public getEnvFilePath() : string`

##### Return values

string

#### getEnvKeys()

EnvResolver.php : 73
`public getEnvKeys() : mixed`

#### loadEnv()

EnvResolver.php : 37

Load the environment variables

`public loadEnv([string|null $src = '.env' ]) : void`

##### Parameters

$src : string|null = '.env'

#### mediaPath()

PathsTrait.php : 21

The path to the resources directory.

`public mediaPath() : string`

##### Return values

string

#### phpPath()

PathsTrait.php : 45
`public phpPath() : string`

##### Return values

string

#### phpVersion()

PathsTrait.php : 40
`public phpVersion() : string`

##### Return values

string

#### publicPath()

PathsTrait.php : 13

The directory where the frontend assets are stored.

`public publicPath([ $path = null ]) : string`

##### Parameters

$path : = null

##### Return values

string

#### resolveDatabaseConfigs()

EnvResolver.php : 81
`public resolveDatabaseConfigs(Filesystem $fs[, string|null $fileName = 'database.ini' ]) : void`

##### Parameters

$fs : Filesystem
$fileName : string|null = 'database.ini'

## Search results