CompilesConditionals
trait CompilesConditionals (View source)
Methods
string | compileHasSection(string $expression) Compile the has-section statements into valid PHP. | |
string | compileAuth(string|null $guard = null) Compile the if-auth statements into valid PHP. | |
string | compileEndAuth() Compile the end-auth statements into valid PHP. | |
string | compileGuest(string|null $guard = null) Compile the if-guest statements into valid PHP. | |
string | compileEndGuest() Compile the end-guest statements into valid PHP. | |
string | compileIf(string $expression) Compile the if statements into valid PHP. | |
string | compileUnless(string $expression) Compile the unless statements into valid PHP. | |
string | compileElseif(string $expression) Compile the else-if statements into valid PHP. | |
string | compileElse() Compile the else statements into valid PHP. | |
string | compileEndif() Compile the end-if statements into valid PHP. | |
string | compileEndunless() Compile the end-unless statements into valid PHP. | |
string | compileIsset(string $expression) Compile the if-isset statements into valid PHP. | |
string | compileEndIsset() Compile the end-isset statements into valid PHP. |
Details
protected string compileHasSection(string $expression)
Compile the has-section statements into valid PHP.
protected string compileAuth(string|null $guard = null)
Compile the if-auth statements into valid PHP.
protected string compileEndAuth()
Compile the end-auth statements into valid PHP.
protected string compileGuest(string|null $guard = null)
Compile the if-guest statements into valid PHP.
protected string compileEndGuest()
Compile the end-guest statements into valid PHP.
protected string compileIf(string $expression)
Compile the if statements into valid PHP.
protected string compileUnless(string $expression)
Compile the unless statements into valid PHP.
protected string compileElseif(string $expression)
Compile the else-if statements into valid PHP.
protected string compileElse()
Compile the else statements into valid PHP.
protected string compileEndif()
Compile the end-if statements into valid PHP.
protected string compileEndunless()
Compile the end-unless statements into valid PHP.
protected string compileIsset(string $expression)
Compile the if-isset statements into valid PHP.
protected string compileEndIsset()
Compile the end-isset statements into valid PHP.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/View/Compilers/Concerns/CompilesConditionals.html