FilamentF
Filament3y ago
Abi

Standalone Table with Row Actions not working

I have the following table actions for my standalone table.

public function getTableActions(): array
    {
        return [
            Action::make('Edit')->form($this->getFormSchema())->modalWidth('md')->action(function ($data) {
                $this->company->benefits()->updateExistingPivot($data['id'], ['benefit_description' => $data['description']]);
            }),
            Action::make('Delete')->requiresConfirmation()->action(function ($data) {
                $this->company->benefits()->detach($data['id']);
            }),
        ];
    }


Not sure why, but clicking on the Edit or Delete actions does nothing.
Was this page helpful?