Filter Eloquent Models by Related Data Existence
Efficiently filter parent Eloquent models based on the existence of their related models or specific conditions within those relationships using `has()`, `whereHas()`, and `doesntHave()` methods in Laravel.