W3cubDocs

/Laravel 5.4

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.

Parameters

string $name
array $data

Return Value

void

string renderComponent()

Render the current component.

Return Value

string

void slot(string $name, string|null $content = null)

Start the slot rendering process.

Parameters

string $name
string|null $content

Return Value

void

void endSlot()

Save the slot content for rendering.

Return Value

void

© 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