© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Pan

Get the owner record while at their Edit Page

What I am trying to do:
I want to disable a field ('changing their role or changing their password') if the current record that a moderator is editing has a role of Admin.
I wanted to start with by getting the ownerRecord but I am lost

What I did:
I used this for getting the ownerRecord for the relation manager but does not work when at the UserResource and tried following the second that used
$livewire->ownerRecord)
$livewire->ownerRecord)
but seem to be not the solution
https://filamentphp.com/docs/2.x/admin/resources/relation-managers#accessing-the-owner-record

My issue/the error:
If i try to call the ownerRecord I just get
Undefined property: UserResource::$ownerRecord
Relation managers - Admin Panel - Filament
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

How to link to the edit page of the owner of record?
FilamentFFilament / ❓┊help
2y ago
owner record
FilamentFFilament / ❓┊help
2y ago
Get record in edit widget
FilamentFFilament / ❓┊help
3y ago
Test case in edit record page
FilamentFFilament / ❓┊help
3y ago