Skip to content

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

Merged
taylorotwell merged 1 commit intolaravel:11.xfrom
bastien-phi:authorizable_docblocks
Oct 9, 2024
Merged

[11.x] Update Authorizable methods with BackedEnum support#53079
taylorotwell merged 1 commit intolaravel:11.xfrom
bastien-phi:authorizable_docblocks

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