Retrieving the Count of Records in an Eloquent Pivot Table in Laravel 5
How to find the count of records in a pivot table for a many-to-many relationship between models in Laravel 5 using Eloquent ORM.

How to find the count of records in a pivot table for a many-to-many relationship between models in Laravel 5 using Eloquent ORM.