Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing @when, @bool blade directives #72

Closed
angeljqv opened this issue Oct 17, 2024 · 2 comments
Closed

Missing @when, @bool blade directives #72

angeljqv opened this issue Oct 17, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@angeljqv
Copy link

@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
Copy link
Owner

Interesting, this is new.

I didn't find these in their library.

Maybe it's a third party plugin which I'm missing?

@angeljqv
Copy link
Author

angeljqv commented Oct 18, 2024

@haidubogdan haidubogdan self-assigned this Oct 18, 2024
@haidubogdan haidubogdan added the enhancement New feature or request label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants