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

[5.5] Add policies method to Gate #21036

Merged
merged 1 commit into from
Sep 6, 2017
Merged

[5.5] Add policies method to Gate #21036

merged 1 commit into from
Sep 6, 2017

Conversation

roseffendi
Copy link
Contributor

@roseffendi roseffendi commented Sep 6, 2017

Coming back from master branch. 😆

I saw Gate has abilities method in order to get all defined abilities. I think adding a method to retrieve all defined policies will be useful. In my case, i need to get all abilities and policies to dynamically grant permissions to users or groups.

@taylorotwell taylorotwell merged commit c276af8 into laravel:5.5 Sep 6, 2017
gonzahce added a commit to gonzahce/framework that referenced this pull request Sep 6, 2017
*      catch errors as well (laravel#21047)

* return  from Validator::setCustomMessages (laravel#21046)

*       show exception class in JSON (laravel#21043)

* [5.5] Removed listener listensFor (laravel#21039)

* remove listensFor

* remove listensFor

* Specify lower case `column_name` (fixes laravel#20190) (laravel#21037)

* [5.5] Add policies method to Gate (laravel#21036)
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.

None yet

2 participants