Ability to return all checks of a Policy as an array #43950
Unanswered
rayronvictor
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes we need to return all policy checks as an array (e.g. Jetstream Inertia TeamController https://github.com/laravel/jetstream/blob/2.x/src/Http/Controllers/Inertia/TeamController.php#L38)
But what if you could call
Gate::policyChecks($team)
?My suggestion of implementation:
Beta Was this translation helpful? Give feedback.
All reactions