CompilesConditionals
trait CompilesConditionals
Methods
Compile the has-section statements into valid PHP.
Compile the if-auth statements into valid PHP.
Compile the end-auth statements into valid PHP.
Compile the if-guest statements into valid PHP.
Compile the end-guest statements into valid PHP.
Compile the if statements into valid PHP.
Compile the unless statements into valid PHP.
Compile the else-if statements into valid PHP.
Compile the else statements into valid PHP.
Compile the end-if statements into valid PHP.
Compile the end-unless statements into valid PHP.
Compile the if-isset statements into valid PHP.
Compile the end-isset statements into valid PHP.
Details
at line 13
protected string
compileHasSection(string $expression)
Compile the has-section statements into valid PHP.
at line 24
protected string
compileAuth(string|null $guard = null)
Compile the if-auth statements into valid PHP.
at line 36
protected string
compileEndAuth()
Compile the end-auth statements into valid PHP.
at line 47
protected string
compileGuest(string|null $guard = null)
Compile the if-guest statements into valid PHP.
at line 59
protected string
compileEndGuest()
Compile the end-guest statements into valid PHP.
at line 70
protected string
compileIf(string $expression)
Compile the if statements into valid PHP.
at line 81
protected string
compileUnless(string $expression)
Compile the unless statements into valid PHP.
at line 92
protected string
compileElseif(string $expression)
Compile the else-if statements into valid PHP.
at line 102
protected string
compileElse()
Compile the else statements into valid PHP.
at line 112
protected string
compileEndif()
Compile the end-if statements into valid PHP.
at line 122
protected string
compileEndunless()
Compile the end-unless statements into valid PHP.
at line 133
protected string
compileIsset(string $expression)
Compile the if-isset statements into valid PHP.
at line 143
protected string
compileEndIsset()
Compile the end-isset statements into valid PHP.