© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
codeartisan

Auto increment column

Am using livewire and filament but I want to add a column that is auto generated with the numbers incrementing
                Tables\Columns\TextColumn::make('date')
                    ->date()
                    ->label("Date")
                    ->copyable()
                    ->sortable(),
                Tables\Columns\TextColumn::make('customer.name')
                    ->searchable()
                    ->sortable()
                    ->copyable()
                    ->label("Customer Name")
                    ->sortable(),
                Tables\Columns\TextColumn::make('coffee.name')
                    ->searchable()
                    ->sortable()
                    ->copyable()
                    ->label("Coffee Type")
                    ->sortable(),
                Tables\Columns\TextColumn::make('mc')
                    ->numeric()
                    ->sortable()
                    ->label("MC")
                    ->searchable()
                    ->sortable(),
                Tables\Columns\TextColumn::make('date')
                    ->date()
                    ->label("Date")
                    ->copyable()
                    ->sortable(),
                Tables\Columns\TextColumn::make('customer.name')
                    ->searchable()
                    ->sortable()
                    ->copyable()
                    ->label("Customer Name")
                    ->sortable(),
                Tables\Columns\TextColumn::make('coffee.name')
                    ->searchable()
                    ->sortable()
                    ->copyable()
                    ->label("Coffee Type")
                    ->sortable(),
                Tables\Columns\TextColumn::make('mc')
                    ->numeric()
                    ->sortable()
                    ->label("MC")
                    ->searchable()
                    ->sortable(),
Solution
euh... this ?
https://filamentphp.com/docs/3.x/tables/columns/text#displaying-the-row-index
Text column - Table Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

KeyValue auto increment (?)
FilamentFFilament / ❓┊help
2y ago
Repeater and auto-increment field
FilamentFFilament / ❓┊help
2y ago
Auto increment field in the table.
FilamentFFilament / ❓┊help
2y ago
Why trait for auto generated column is not working?
FilamentFFilament / ❓┊help
5mo ago