ManagesStacks
trait ManagesStacks (View source)
Properties
| protected array | $pushes | All of the finished, captured push sections. |
|
| protected array | $prepends | All of the finished, captured prepend sections. |
|
| protected array | $pushStack | The stack of in-progress push sections. |
Methods
Start injecting content into a push section.
Stop injecting content into a push section.
Append content to a given push section.
Start prepending content into a push section.
Stop prepending content into a push section.
Prepend content to a given stack.
Get the string contents of a push section.
Flush all of the stacks.
Details
void
startPush(string $section, string $content = '')
Start injecting content into a push section.
string
stopPush()
Stop injecting content into a push section.
protected void
extendPush(string $section, string $content)
Append content to a given push section.
void
startPrepend(string $section, string $content = '')
Start prepending content into a push section.
string
stopPrepend()
Stop prepending content into a push section.
protected void
extendPrepend(string $section, string $content)
Prepend content to a given stack.
string
yieldPushContent(string $section, string $default = '')
Get the string contents of a push section.
void
flushStacks()
Flush all of the stacks.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.