trait
Illuminate
/
View
/
Compilers
/
Concerns
/
CompilesComponents
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
CompilesComponents
Properties
protected
static
$componentHashStack array
The component name hash stack.
Default: []
Methods
protected
compileComponent ( $expression ) : string
Compile the component statements into valid PHP.
Parameters
- $expression string
public
static
newComponentHash ( string $component ) : string
Get a new component hash for a component name.
Parameters
- $component string
public
static
compileClassComponentOpening ( string $component , string $alias , string $data , string $hash ) : string
Compile a class component opening.
Parameters
- $component string
- $alias string
- $data string
- $hash string
protected
compileEndComponent ( ) : string
Compile the end-component statements into valid PHP.
public
compileEndComponentClass ( ) : string
Compile the end-component statements into valid PHP.
protected
compileSlot ( $expression ) : string
Compile the slot statements into valid PHP.
Parameters
- $expression string
protected
compileEndSlot ( ) : string
Compile the end-slot statements into valid PHP.
protected
compileComponentFirst ( $expression ) : string
Compile the component-first statements into valid PHP.
Parameters
- $expression string
protected
compileEndComponentFirst ( ) : string
Compile the end-component-first statements into valid PHP.
protected
compileProps ( $expression ) : string
Compile the prop statement into valid PHP.
Parameters
- $expression string
protected
compileAware ( $expression ) : string
Compile the aware statement into valid PHP.
Parameters
- $expression string
public
static
sanitizeComponentAttribute ( $value ) : mixed
Sanitize the given component attribute value.
Parameters
- $value mixed