trait CompilesEchos (View source)
| protected array | $echoHandlers | Custom rendering callbacks for stringable objects. |
| void | stringable(string|callable $class, callable|null $handler = null)
Add a handler to be executed before echoing a given class. | |
| string | compileEchos(string $value)
Compile Blade echos into valid PHP. | |
| array | getEchoMethods()
Get the echo methods in the proper order for compilation. | |
| string | compileRawEchos(string $value)
Compile the "raw" echo statements. | |
| string | compileRegularEchos(string $value)
Compile the "regular" echo statements. | |
| string | compileEscapedEchos(string $value)
Compile the escaped echo statements. | |
| string | addBladeCompilerVariable(string $result)
Add an instance of the blade echo handler to the start of the compiled string. | |
| string | wrapInEchoHandler(string $value)
Wrap the echoable value in an echo handler if applicable. | |
| string | applyEchoHandler(string $value)
Apply the echo handler for the value if it exists. |
Add a handler to be executed before echoing a given class.
Compile Blade echos into valid PHP.
Get the echo methods in the proper order for compilation.
Compile the "raw" echo statements.
Compile the "regular" echo statements.
Compile the escaped echo statements.
Add an instance of the blade echo handler to the start of the compiled string.
Wrap the echoable value in an echo handler if applicable.
Apply the echo handler for the value if it exists.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/View/Compilers/Concerns/CompilesEchos.html