Add method to extend all relations on a model with custom functionality.