Replies: 1 comment
-
@w99910 are you able to solve it? |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Description:
I'm trying to implement belongsTo relationship with custom local key and foreign key.
Collection structure
posts
alerts
Expected behaviour
Here we will match accountId in posts collection and postId in alerts collection.
App\Models\Post
Actual behaviour
When I dd
App\Models\Alert::first()->alert
, it returnsnull
.Beta Was this translation helpful? Give feedback.
All reactions