-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
@elsecan / @elsecannot functionality #13048
Comments
@GrahamCampbell this too can be closed |
Thank you. |
In future, please format PR bodies so they actually contain the text |
I started doing that already in my latest PRs, making your job a bit easier ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to effectuate @else and @can into blades? I have run into a situation where I need to leverage @elsecan() but do not see this functionality in Laravel. Below is a basic example:
If a new feature is added for @elsecan, it would make sense to add @elsecannot at the same.
---Edit---
I ended up creating my own directive in AppServiceProvider::boot(), but this is probably a useful directive for others.
The text was updated successfully, but these errors were encountered: