ModelRelationships trait to properly handle BelongsToMany operations. Replaced the event-based approach (which was relying on non-existent Laravel events) with a custom BelongsToMany relationship class that flushes the cache after attach, detach, sync, syncWithoutDetaching, and updateExistingPivot operations.CachingBelongsToMany class to properly extend Laravel's BelongsToMany class and maintain the relationship contract. This resolves the "must return a relationship instance" error when accessing relationship properties after operations like attach() and detach().model-cache.enabled configuration parameter is now properly checked in the HasCachedQueries trait, ensuring that when cache is disabled via configuration, the standard Eloquent builder is used instead of the cache-enabled version.$cachePrefix propertyModelRelationships trait to support cache invalidation for Eloquent relationship operationssyncRelationshipAndFlushCache(), attachRelationshipAndFlushCache(), detachRelationshipAndFlushCache()$cacheMinutes) definition at the model levelHasCachedQueries trait to enable caching on any modelgetFromCache(), firstFromCache())mcache:flush Artisan command for manual cache clearingHow can I help you explore Laravel packages today?