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.7] Allow array callables to be passed to Gate::before() #25817

Merged
merged 1 commit into from
Sep 28, 2018

Conversation

JosephSilber
Copy link
Member

Before the changes in this PR, calling Gate::before([$object, 'method']) actually threw an error. This broke laravel-debugbar, and they had to switch to wrapping it in a closure: barryvdh/laravel-debugbar#867

image

@taylorotwell taylorotwell merged commit b56c91e into laravel:5.7 Sep 28, 2018
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