Skip to content

Commit 45a2332

Browse files
[12.x] add docs for @hasstack (#10913)
* add docs for `@hasstack` document laravel/framework#57788 * Update blade.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 3e1ce5b commit 45a2332

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

blade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,16 @@ If you would like to prepend content onto the beginning of a stack, you should u
18551855
@endprepend
18561856
```
18571857

1858+
The `@hasstack` directive may be used to determine if a stack is empty:
1859+
1860+
```blade
1861+
@hasstack('list')
1862+
<ul>
1863+
@stack('list')
1864+
</ul>
1865+
@endif
1866+
```
1867+
18581868
<a name="service-injection"></a>
18591869
## Service Injection
18601870

0 commit comments

Comments
 (0)