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] Improve findOrFail() exceptions #26182

Merged
merged 1 commit into from
Oct 19, 2018
Merged

[5.7] Improve findOrFail() exceptions #26182

merged 1 commit into from
Oct 19, 2018

Conversation

staudenmeir
Copy link
Contributor

#15896 improved findOrFail() by passing the provided $id to the ModelNotFoundException.

This PR applies the same improvement to the findOrFail() methods in BelongsToMany and HasManyThrough.

Fixes #26181.

@taylorotwell taylorotwell merged commit 442c5ee into laravel:5.7 Oct 19, 2018
@staudenmeir staudenmeir deleted the find-or-fail branch October 19, 2018 04:57
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