ManagesStacks (View\Concerns)

ManagesStacks

trait ManagesStacks (View source)

Methods

void startPush(string $section, string $content = '')

Start injecting content into a push section.

string stopPush()

Stop injecting content into a push section.

void startPrepend(string $section, string $content = '')

Start prepending content into a push section.

string stopPrepend()

Stop prepending content into a push section.

string yieldPushContent(string $section, string $default = '')

Get the string contents of a push section.

void flushStacks()

Flush all of the stacks.

Details

void startPush(string $section, string $content = '')

Start injecting content into a push section.

Parameters

string $section
string $content

Return Value

void

string stopPush()

Stop injecting content into a push section.

Return Value

string

Exceptions

InvalidArgumentException

void startPrepend(string $section, string $content = '')

Start prepending content into a push section.

Parameters

string $section
string $content

Return Value

void

string stopPrepend()

Stop prepending content into a push section.

Return Value

string

Exceptions

InvalidArgumentException

string yieldPushContent(string $section, string $default = '')

Get the string contents of a push section.

Parameters

string $section
string $default

Return Value

string

void flushStacks()

Flush all of the stacks.

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/ManagesStacks.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部