Support the ongoing development of Laravel.io →
Views Blade

Noticed that after my last update (composer update) the web site app failed with the error above.

So after the 5 min of digging noticed that now i can't write templates as:

<input type="..." name="..." value="..." @if($user->is_blocked == 'N')checked@endif>

I need a space between checked and @endif.

May be i am stupid, but it worked a week ago =(

May be i am doing things wrong and this is a bad practice?

Thanks =)

Last updated 3 years ago.
0
<input type="..." name="..." value="..." {{ $user->is_blocked == 'N' ? 'checked' : '' }}>
Last updated 3 years ago.
0

arcollector said:

is_blocked == 'N' ? 'checked' : '' }}>

Thanks, i thought about such style

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.