How can I get the parent Resource from RelationManager class?

Hi. I'm having a UserResource class, which has the ContactRelationManager. In the Create/Edit/List pages of the UserResource, I can use method like: self::getResource() to point to the UserResource class. So, from the ContactRelationManager class, how can I get the full path of the UserResource class? Thanks.
4 Replies
Bruno Pereira
Bruno Pereira2mo ago
$this->getOwnerRecord()
$this->getOwnerRecord()
Zen Nitiruj
Zen Nitiruj2mo ago
Why don't use just use UserResource::somethod() but if you want to use the record use $livewire->getOwnerRecord()
Hung Thai
Hung ThaiOP2mo ago
that method return the parent record of the relationship, what i'm trying to get is the full path of the ClassName like : App\Filament\Resources\UserResource from the ContactRelationManager...
Want results from more Discord servers?
Add your server