rappasoft/laravel-livewire-tables
Laravel Livewire Tables provides dynamic, feature-rich data tables for Laravel Livewire with sorting, searching, filtering, pagination, bulk actions, and Bootstrap/Tailwind support. Build reusable table components backed by Eloquent queries.
Count columns provide an easy way to display the "Count" of a relation.
CountColumn::make('Related Users')
->setDataSource('users')
->sortable(),
The "sortable()" callback can accept a callback, or you can use the default behaviour, which calculates the correct field to sort on.
Please also see the following for other available methods:
How can I help you explore Laravel packages today?