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

[11.x] Update Authorizable methods with BackedEnum support #53079

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

bastien-phi
Copy link
Contributor

@bastien-phi bastien-phi commented Oct 9, 2024

#52677 added the ability to define and inspect gates using enums.

This updates the docblocks of Authorizable trait as you can now write :

$user->can(Abilities::VIEW_DASHBOARD)

@taylorotwell taylorotwell merged commit 8fbb940 into laravel:11.x Oct 9, 2024
32 of 33 checks passed
@bastien-phi bastien-phi deleted the authorizable_docblocks branch October 9, 2024 15:19
@bastien-phi
Copy link
Contributor Author

Thanks !

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.

2 participants