A super cool, alternative approach to class-based query scopes that I saw on Laravel GitHub issues by @kalpaperera, using The $query->tap() method 🔥 This allows you to keep your IDE type hints 🙌