How to number the data in the table?

For example when I have 10 values ​​in the table with id from 11 to 20, how do I display the number from 1 to 10 instead of according to the id which is from 11 to 20?
4 Replies
This PC
This PC9mo ago
Thank you very much ❤️
aliif
aliif9mo ago
TextColumn::make('no')->state( static function (HasTable $livewire, stdClass $rowLoop): string { return (string) ( $rowLoop->iteration + ($livewire->getTableRecordsPerPage() * ( $livewire->getTablePage() - 1 )) ); } ),
This PC
This PC9mo ago
yes i solved that problem, many thanks for your help
Want results from more Discord servers?
Add your server