public function table(Table $table): Table
{
return $table
->columns(...)
->filters(...)
->headerActions([
Tables\Actions\CreateAction::make(),
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
])
->emptyStateActions([
Tables\Actions\CreateAction::make(),
])
->actionsPosition(Tables\Enums\ActionsPosition::BeforeCells)
->poll('120s')
->persistFiltersInSession()
->paginated([10])
->defaultSort('status_changed_at', 'desc');
}
public function table(Table $table): Table
{
return $table
->columns(...)
->filters(...)
->headerActions([
Tables\Actions\CreateAction::make(),
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
])
->emptyStateActions([
Tables\Actions\CreateAction::make(),
])
->actionsPosition(Tables\Enums\ActionsPosition::BeforeCells)
->poll('120s')
->persistFiltersInSession()
->paginated([10])
->defaultSort('status_changed_at', 'desc');
}