Table: Multiple counting on same relationship
How can I have multiple counts on the same relation in one table?
This just shows the last column "Completed applications", but the name has to be
applications_count
for the relation to work.Solution:Jump to solution
Perhaps you could try something like:
withCount
```php
return $table
->modifyQueryUsing(function ($query) {...3 Replies
I think you can use this
and use applications_count and completed
yes, the same
thanks, it worked