trait Illuminate / View / Compilers / Concerns / CompilesConditionals
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

CompilesConditionals

Properties

protected

$firstCaseInSwitch bool

Identifier for the first case in the switch statement.

Default: true

Methods

protected

compileAuth ( $guard ) : string

Compile the if-auth statements into valid PHP.

Parameters

  • $guard string|null
protected

compileElseAuth ( $guard ) : string

Compile the else-auth statements into valid PHP.

Parameters

  • $guard string|null
protected

compileEndAuth ( ) : string

Compile the end-auth statements into valid PHP.

protected

compileEnv ( $environments ) : string

Compile the env statements into valid PHP.

Parameters

  • $environments string
protected

compileEndEnv ( ) : string

Compile the end-env statements into valid PHP.

protected

compileProduction ( ) : string

Compile the production statements into valid PHP.

protected

compileEndProduction ( ) : string

Compile the end-production statements into valid PHP.

protected

compileGuest ( $guard ) : string

Compile the if-guest statements into valid PHP.

Parameters

  • $guard string|null
protected

compileElseGuest ( $guard ) : string

Compile the else-guest statements into valid PHP.

Parameters

  • $guard string|null
protected

compileEndGuest ( ) : string

Compile the end-guest statements into valid PHP.

protected

compileHasSection ( $expression ) : string

Compile the has-section statements into valid PHP.

Parameters

  • $expression string
protected

compileSectionMissing ( $expression ) : string

Compile the section-missing statements into valid PHP.

Parameters

  • $expression string
protected

compileIf ( $expression ) : string

Compile the if statements into valid PHP.

Parameters

  • $expression string
protected

compileUnless ( $expression ) : string

Compile the unless statements into valid PHP.

Parameters

  • $expression string
protected

compileElseif ( $expression ) : string

Compile the else-if statements into valid PHP.

Parameters

  • $expression string
protected

compileElse ( ) : string

Compile the else statements into valid PHP.

protected

compileEndif ( ) : string

Compile the end-if statements into valid PHP.

protected

compileEndunless ( ) : string

Compile the end-unless statements into valid PHP.

protected

compileIsset ( $expression ) : string

Compile the if-isset statements into valid PHP.

Parameters

  • $expression string
protected

compileEndIsset ( ) : string

Compile the end-isset statements into valid PHP.

protected

compileSwitch ( $expression ) : string

Compile the switch statements into valid PHP.

Parameters

  • $expression string
protected

compileCase ( $expression ) : string

Compile the case statements into valid PHP.

Parameters

  • $expression string
protected

compileDefault ( ) : string

Compile the default statements in switch case into valid PHP.

protected

compileEndSwitch ( ) : string

Compile the end switch statements into valid PHP.

protected

compileOnce ( $id ) : string

Compile a once block into valid PHP.

Parameters

  • $id string|null
public

compileEndOnce ( ) : string

Compile an end-once block into valid PHP.

protected

compileSelected ( $condition ) : string

Compile a selected block into valid PHP.

Parameters

  • $condition string
protected

compileChecked ( $condition ) : string

Compile a checked block into valid PHP.

Parameters

  • $condition string
protected

compileDisabled ( $condition ) : string

Compile a disabled block into valid PHP.

Parameters

  • $condition string
protected

compileRequired ( $condition ) : string

Compile a required block into valid PHP.

Parameters

  • $condition string
protected

compileReadonly ( $condition ) : string

Compile a readonly block into valid PHP.

Parameters

  • $condition string
protected

compilePushIf ( $expression ) : string

Compile the push statements into valid PHP.

Parameters

  • $expression string
protected

compileEndPushIf ( ) : string

Compile the end-push statements into valid PHP.