Skip to content

Conversation

@ashleyshenton
Copy link
Contributor

Fixes #55665

I raised an issue for this beforehand to showcase the problem. This PR adds tests that fail without the provided fix.

Before:
before

After:
after

@taylorotwell taylorotwell merged commit 30d92c9 into laravel:12.x May 7, 2025
60 checks passed
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.

Eloquent whereAttachedTo incorrectly querying non-ID columns from the model

2 participants