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)
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::$ownerRecord1 Reply
is there something I am missing on how to get the ownerRecord when in EditPage of a record?