trait ManagesComponents (View source)
protected array | $componentStack | The components being rendered. | |
protected array | $componentData | The original data passed to the component. | |
protected array | $slots | The slot contents for the component. | |
protected array | $slotStack | The names of the slots being rendered. |
void | startComponent(string $name, array $data = []) Start a component rendering process. | |
void | startComponentFirst(array $names, array $data = []) Get the first view that actually exists from the given list, and start a component. | |
string | renderComponent() Render the current component. | |
array | componentData(string $name) Get the data for the given component. | |
void | slot(string $name, string|null $content = null) Start the slot rendering process. | |
void | endSlot() Save the slot content for rendering. | |
int | currentComponent() Get the index for the current component. |
Start a component rendering process.
Get the first view that actually exists from the given list, and start a component.
Render the current component.
Get the data for the given component.
Start the slot rendering process.
Save the slot content for rendering.
Get the index for the current component.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/View/Concerns/ManagesComponents.html