Menu

## PathsTrait

PathsTrait.php : 6

### Table of Contents

#### Methods

appRoot() : string
  The root folder of the application.
envPath() : string
mediaPath() : string
  The path to the resources directory.
phpPath() : string
phpVersion() : string
publicPath() : string
  The directory where the frontend assets are stored.

### Methods

#### 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

#### 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

## Search results