visible block table action

Hi, im trying to use ->visible() on a table action but when it is present my ->action method doesnt not execute its code, and example:
Tables\Actions\Action::make('entregas')
->icon('heroicon-o-clipboard-check')
->action(function (Semana $record) {
\dd($record);
})
->visible(fn($record) => $record->actividades_count > 0),
Tables\Actions\Action::make('entregas')
->icon('heroicon-o-clipboard-check')
->action(function (Semana $record) {
\dd($record);
})
->visible(fn($record) => $record->actividades_count > 0),
1 Reply
LeandroFerreira
LeandroFerreira17mo ago
It was supposed to work.. any errors/console errors?
Want results from more Discord servers?
Add your server