Skip to content

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

2 participants