F
Filament10mo ago
ericmp

Retrieve parent in relation page

In the relation page ive created between forms & responses (one to many), id like to get the parent record inside the columns function in the table method, how to? i also want to retrieve it in here:
public function getTitle(): string | Htmlable
{
return $form->title . ': ' . __('Responses');
}
public function getTitle(): string | Htmlable
{
return $form->title . ': ' . __('Responses');
}
relation pages docs ive read -> https://filamentphp.com/docs/3.x/panels/resources/relation-managers#relation-pages
1 Reply
ericmp
ericmpOP10mo ago
i think i got it inisde getTitle fn:
$this->getRecord()
$this->getRecord()
Want results from more Discord servers?
Add your server