Closed chrillep closed 2 months ago
^1.14.1
@foreach ($users as $user) @if ($user->type == 1) @continue @endif <li>{{ $user->name }}</li> @if ($user->number == 5) @break @endif @endforeach
https://laravel.com/docs/11.x/blade#loops:~:text=When%20using%20loops,directives%3A
for @if and @break inside a @foreach should be scoped and indented correctly
@if
@break
@foreach
No response
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
@shufo reopen :)
Version
^1.14.1
Template before formatting
Template after formatting
Expected Behaviour
https://laravel.com/docs/11.x/blade#loops:~:text=When%20using%20loops,directives%3A
for
@if
and@break
inside a@foreach
should be scoped and indented correctlyRelevant log output
No response