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.

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部