Row Count by relational table and filter by date laravel

172 views Asked by At

I have offer table and report table I and report table have offer_id table. offer to report table relation on to many, I count reports table row by offer table by desc

1

There are 1 answers

0
Diego Dieh On

Here is the official documentation about counting on relationships: https://laravel.com/docs/8.x/eloquent-relationships#counting-related-models