Skip to content

Commit 969bc63

Browse files
authored
Merge pull request #3332 from Atrophius/patch-1
Add note about @each not inheriting variables
2 parents 70156ad + 4bf4823 commit 969bc63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

blade.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ You may also pass a fourth argument to the `@each` directive. This argument dete
352352

353353
@each('view.name', $jobs, 'job', 'view.empty')
354354

355+
> {note} Views rendered via `@each` do not inherit the variables from the parent view. If the child view requires these variables, you should use `@foreach` and `@include` instead.
356+
355357
<a name="stacks"></a>
356358
## Stacks
357359

0 commit comments

Comments
 (0)