RelationManagerTable access $records from headeractions
Is there a way to access all of the records within the relation manager from the action itself ?
6 Replies
bulkAction?
I wanted to perform the action directly from the header without having to select all records manually. But maybe it isn't user-friendly enough
I'll follow your thought and go w/ bulkAction for the time beeing
not sure if it is the right way, but you could do this
https://filamentphp.com/docs/2.x/admin/resources/relation-managers#accessing-the-owner-record
Filament
Relation managers - Resources - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
try
$livewire->getTableRecords()
for the current page or $livewire->getFilteredTableQuery()->get()
for allThanks it solved my case