How to update Relation Manager table data

I need to create an action that when clicked it updates the relation manager table where this action is located. Which method should I call within the action to do this? Thanks
image.png
Solution
The action is on the relation manager itself? If so, action should dispath an event
Tables\Actions\Action::make('refresh')
    ->dispatchSelf('refreshComments'),


and then you listen for this event on the relation manager class and refresh
#[On('refreshComments')]
public function refresh(): void
{}
Was this page helpful?