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(),
3 Replies
codeartisan
codeartisanOP7mo ago
thank you solved
DomThomas
DomThomas7mo ago
Don't forget to mark solved
Want results from more Discord servers?
Add your server