Support the ongoing development of Laravel.io →

steevie73445

Joined 5 Sep 2016

Statistics

Threads 1
Replies 1
Solutions 0
Articles 0

How to use a count-aggregate function directly on a pivot table?

I am looking for the equivalent in Eloquent/ Laravel to the SQL statement SELECT label_id, COUNT(*)...

0 Likes
2 Replies
replied 8 years ago

How to use a count-aggregate function directly on a pivot table?

I think that doesn't solve my usecasse. I would get counts for all pictures but I just want to count...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.