...
return $table
->emptyStateHeading('No Active Calls')
->poll(config('widgets.poll'))
->striped()
->columns([
Tables\Columns\TextColumn::make('name')
->size(TextColumnSize::ExtraSmall)
->wrap()
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\Action::make('custom')
->view('filament.company.tables.modals.custom')
->visible(fn($record) => $this->spyVisibility($record))
->action((function ($record) {
Log::debug($record);
// This code is never executed
})),
]);
...
return $table
->emptyStateHeading('No Active Calls')
->poll(config('widgets.poll'))
->striped()
->columns([
Tables\Columns\TextColumn::make('name')
->size(TextColumnSize::ExtraSmall)
->wrap()
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\Action::make('custom')
->view('filament.company.tables.modals.custom')
->visible(fn($record) => $this->spyVisibility($record))
->action((function ($record) {
Log::debug($record);
// This code is never executed
})),
]);