© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
19 replies
kingtox

HasManythrough showing wrong owner record Id

Hey 👋

In my model I have a relationship

public function resultLog()
{
return $this->hasManyThrough(
ResultLog::class, Result::class,
'user_id', 'result_id', 'id', 'id'
);
}

I define primary key in my modal as a user_id, but for some reason the relation manager is showing wrong user_id of the owner record, it shows random user_id.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

owner record
FilamentFFilament / ❓┊help
2y ago
Record not showing
FilamentFFilament / ❓┊help
16mo ago
Allow editing a non owner record
FilamentFFilament / ❓┊help
3y ago
HasManyThrough repeater relation
FilamentFFilament / ❓┊help
2y ago