How to share a resource infolist
Let me explain the relationship structure and the current issue:
Resource Relationships:
Current Issue:
how can i reuse
Resource Relationships:
JobPostResourceis the parent resourceJobApplicationResourceis a child resource ofJobPostResource(indicated bypublic static string $parentResource = JobPostResource::class;)OutsourcingListResource(Talent) is related toJobApplicationthrough a relationship
- A Job Post can have multiple Job Applications
- Each Job Application is associated with one Talent (OutsourcingList)
- The relationship path is: JobPost -> JobApplication -> Talent
Current Issue:
- In the infolist, we're trying to display Talent information within a Job Application like
$infolist->getRecord()->talent)by reusingTalentResources::infolist()insideJobApplicationResource::infolist()
how can i reuse
TalentResource::getTalentProfile() inside JobApplicationResource. How do i pass the talent data inside the getTalentProfile() method.