F
Filament5mo ago
shabxs

How to access record in infolist

I have created a named infolist inside a relationmanager resource as below use Filament\Infolists\Components\TextEntry; use Filament\Infolists\Infolist; public function productInfolist(Infolist $infolist): Infolist { return $infolist ->record($this->product) // How to get access to the current record ->schema([ TextEntry::make('name'), TextEntry::make('category.name'), // ... ]); } How do i access the current record not the ownerrecord.
1 Reply
Dennis Koch
Dennis Koch5mo ago
What is the "current record" if there are multiple? What do you want to archive? Open a modal? You shold use a table action then. Please also read #✅┊rules on how to format code
Want results from more Discord servers?
Add your server