requiresConfirmation(); $this->afterFormValidated(function ($livewire, BaseTableAction $action) { if ($livewire instanceof BaseRelationManager) { $this->createActionLog($action, $livewire->getOwnerRecord()); } }); $this->after(function ($livewire, BaseTableAction $action) { if ($livewire instanceof BaseRelationManager) { $this->finishedLog(); } }); $this->modalWidth(MaxWidth::FourExtraLarge); $this->action(fn (array $data) => $this->handle($data)); } /** * Perform the action on the table. * * @param array $fields * @return void */ abstract public function handle(array $fields): void; }