Replies: 2 comments
-
I end up removing it then manually using public function chatUser(): BelongsTo
{
return $this->belongsTo(ChatUser::class, 'user_id', 'user_id');
// ->where('story_id', $this->story_id);
} $conversation->chatUser()->whereStoryId($conversation->story_id)->first() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Define columns manually in hasManyThrough method. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions