App
in package
Application helper class
Tags
Table of Contents
Properties
- $application : Application|null
- Application object
Methods
- config() : mixed
- Get configuration
- env() : mixed
- Get environment value
- environment() : string|null|bool
- Get application environment
- get() : Application|null
- Get application object
- has() : bool
- Has application object
- isDev() : bool
- Check if application environment is dev
- isDown() : bool
- Check if application is in maintenance mode
- isLocal() : bool
- Check if application environment is local
- isProduction() : bool
- Check if application environment is production
- isSecretRequest() : bool
- Check if application is in not maintenance mode
- isStaging() : bool
- Check if application environment is staging
- isTesting() : bool
- Check if application environment is testing
- isUp() : bool
- Check if application is in not maintenance mode
- name() : string|null
- Get application name
- set() : void
- Set application object
- url() : string|null
- Get application URL
Properties
$application
Application object
private
static Application|null
$application
= null
Methods
config()
Get configuration
public
static config([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
env()
Get environment value
public
static env(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
environment()
Get application environment
public
static environment([mixed $env = null ]) : string|null|bool
Parameters
- $env : mixed = null
Return values
string|null|boolget()
Get application object
public
static get() : Application|null
Return values
Application|nullhas()
Has application object
public
static has() : bool
Return values
boolisDev()
Check if application environment is dev
public
static isDev() : bool
Return values
boolisDown()
Check if application is in maintenance mode
public
static isDown() : bool
Return values
boolisLocal()
Check if application environment is local
public
static isLocal() : bool
Return values
boolisProduction()
Check if application environment is production
public
static isProduction() : bool
Return values
boolisSecretRequest()
Check if application is in not maintenance mode
public
static isSecretRequest() : bool
Return values
boolisStaging()
Check if application environment is staging
public
static isStaging() : bool
Return values
boolisTesting()
Check if application environment is testing
public
static isTesting() : bool
Return values
boolisUp()
Check if application is in not maintenance mode
public
static isUp() : bool
Return values
boolname()
Get application name
public
static name() : string|null
Return values
string|nullset()
Set application object
public
static set(Application $application) : void
Parameters
- $application : Application
url()
Get application URL
public
static url() : string|null