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

feat: Support custom attributes for controller #54239

Open
wants to merge 2 commits into
base: 11.x
Choose a base branch
from

Conversation

jojomak13
Copy link

This feature introduces the ability for Laravel users to create their own PHP attributes as needed.

For example, I have created an attribute called Authorize. This attribute internally calls the Gate facade.

Screenshot 2025-01-18 at 1 25 44 AM
Screenshot 2025-01-18 at 1 25 56 AM

@shaedrich
Copy link
Contributor

If I wanted a similar attribute for a policy, wouldn't naming get complicated then?

@jojomak13
Copy link
Author

@shaedrich i didnt get your point, could you provide an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants