Access Specific Records from HasManyThrough with Laravel's CanBeOneOfMany Support
Working with HasManyThrough relationships in Laravel but only need a specific record? The new CanBeOneOfMany support lets you easily access the latest, oldest, or custom-filtered model with clean, expressive syntax.
Laravel's Eloquent ORM already provided powerful ways to work with complex relationships. Now, with the addition of CanBeOneOfMany