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.4] Allow getDisplayableAttribute() to be used in custom replacers #18895

Merged
merged 1 commit into from
Apr 21, 2017
Merged

[5.4] Allow getDisplayableAttribute() to be used in custom replacers #18895

merged 1 commit into from
Apr 21, 2017

Conversation

adam-prickett
Copy link
Contributor

Currently, custom replacers cannot access the getDisplayableAttribute method and so other field names in parameters cannot be replaced with custom attributes. The current solution for this appears to be to extend the Validator, as in #9982

By passing the Validator instance to custom replacers as an additional argument and making the getDisplayableAttribute() method public we can add this functionality.

@taylorotwell taylorotwell merged commit 22774b2 into laravel:5.4 Apr 21, 2017
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