CompilesComponents
trait CompilesComponents (View source)
Properties
| static protected array | $componentHashStack | The component name hash stack. | 
Methods
| string |  compileComponent(string $expression)  Compile the component statements into valid PHP.  |  |
| static string |  newComponentHash(string $component)  Get a new component hash for a component name.  |  |
| static string |  compileClassComponentOpening(string $component, string $alias, string $data, string $hash)  Compile a class component opening.  |  |
| string |  compileEndComponent()  Compile the end-component statements into valid PHP.  |  |
| string |  compileEndComponentClass()  Compile the end-component statements into valid PHP.  |  |
| string |  compileSlot(string $expression)  Compile the slot statements into valid PHP.  |  |
| string |  compileEndSlot()  Compile the end-slot statements into valid PHP.  |  |
| string |  compileComponentFirst(string $expression)  Compile the component-first statements into valid PHP.  |  |
| string |  compileEndComponentFirst()  Compile the end-component-first statements into valid PHP.  |  |
| string |  compileProps(string $expression)  Compile the prop statement into valid PHP.  |  |
| static mixed |  sanitizeComponentAttribute(mixed $value)  Sanitize the given component attribute value.  |  
Details
protected string compileComponent(string $expression)
Compile the component statements into valid PHP.
static string newComponentHash(string $component)
Get a new component hash for a component name.
static string compileClassComponentOpening(string $component, string $alias, string $data, string $hash)
Compile a class component opening.
protected string compileEndComponent()
Compile the end-component statements into valid PHP.
string compileEndComponentClass()
Compile the end-component statements into valid PHP.
protected string compileSlot(string $expression)
Compile the slot statements into valid PHP.
protected string compileEndSlot()
Compile the end-slot statements into valid PHP.
protected string compileComponentFirst(string $expression)
Compile the component-first statements into valid PHP.
protected string compileEndComponentFirst()
Compile the end-component-first statements into valid PHP.
protected string compileProps(string $expression)
Compile the prop statement into valid PHP.
static mixed sanitizeComponentAttribute(mixed $value)
Sanitize the given component attribute value.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/7.x/Illuminate/View/Compilers/Concerns/CompilesComponents.html