Skip to content

Missing @when, @bool blade directives #72

@angeljqv

Description

@angeljqv

@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>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions