ManagesComponents (View\Concerns)
ManagesComponents
trait ManagesComponents (View source)
Methods
void | startComponent(string $name, array $data = array()) Start a component rendering process. | |
string | renderComponent() Render the current component. | |
void | slot(string $name, string|null $content = null) Start the slot rendering process. | |
void | endSlot() Save the slot content for rendering. |
Details
void startComponent(string $name, array $data = array())
Start a component rendering process.
string renderComponent()
Render the current component.
void slot(string $name, string|null $content = null)
Start the slot rendering process.
void endSlot()
Save the slot content for rendering.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/View/Concerns/ManagesComponents.html