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
Why don't use just use UserResource::somethod()
but if you want to use the record use $livewire->getOwnerRecord()
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
...