Count in table is not returning any data

                TextColumn::make('location_count')->counts('locations')

Wont return data in the table. If i use the sql directly, i get the value
Screenshot_from_2023-08-04_03-56-51.png
Screenshot_from_2023-08-04_03-57-38.png
Solution
TextColumn::make('locations_count')->counts('locations')
Was this page helpful?