Missing `@when`, `@bool` blade directives
Closed this issue · 2 comments
angeljqv commented
@when
could be useful for conditionally printing things in general
<input name="phone" @when($isRequired, 'required') />
@bool
allow boolean values to be printed directly into strings or used in object construction.
<script>
let config = {
isActive: @bool($isActive),
hasAccess: @bool($hasAccess)
};
</script>
haidubogdan commented
Interesting, this is new.
I didn't find these in their library.
Maybe it's a third party plugin which I'm missing?
angeljqv commented
Sorry, my bad@when
laravel/framework#52665@bool
laravel/framework#53179