Leaf PHP

paths.php

Table of Contents

Functions

AppPaths()  : mixed
Get all app paths
ConfigPath()  : string
Config directory path
CommandsPath()  : string
Commands directory path
ControllersPath()  : string
Controllers directory path
DatabasePath()  : string
Database path
FactoriesPath()  : string
Factories directory path
HelpersPath()  : string
Helpers directory path
LibPath()  : string
Helpers directory path
MigrationsPath()  : string
Migrations directory path
ModelsPath()  : string
Models directory path
PublicPath()  : string
Public directory path
RoutesPath()  : string
Routes directory path
SeedsPath()  : string
Seeds directory path
StoragePath()  : string
Storage directory path
ViewsPath()  : string
Views directory path

Functions

AppPaths()

Get all app paths

AppPaths([mixed $path = null ][, bool $slash = false ]) : mixed
Parameters
$path : mixed = null
$slash : bool = false

ConfigPath()

Config directory path

ConfigPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

CommandsPath()

Commands directory path

CommandsPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

ControllersPath()

Controllers directory path

ControllersPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

DatabasePath()

Database path

DatabasePath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

FactoriesPath()

Factories directory path

FactoriesPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

HelpersPath()

Helpers directory path

HelpersPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

LibPath()

Helpers directory path

LibPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

MigrationsPath()

Migrations directory path

MigrationsPath([mixed $path = '' ][, bool $slash = true ]) : string
Parameters
$path : mixed = ''
$slash : bool = true
Return values
string

ModelsPath()

Models directory path

ModelsPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

PublicPath()

Public directory path

PublicPath([mixed $path = '' ][, mixed $slash = true ]) : string
Parameters
$path : mixed = ''
$slash : mixed = true
Return values
string

RoutesPath()

Routes directory path

RoutesPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

SeedsPath()

Seeds directory path

SeedsPath([mixed $path = '' ]) : string
Parameters
$path : mixed = ''
Return values
string

StoragePath()

Storage directory path

StoragePath([mixed $path = '' ][, bool $slash = false ]) : string
Parameters
$path : mixed = ''
$slash : bool = false
Return values
string

ViewsPath()

Views directory path

ViewsPath([mixed $path = '' ][, bool $slash = true ]) : string
Parameters
$path : mixed = ''
$slash : bool = true
Return values
string

        
On this page

Search results