Comment #⁨5⁩

In reply to Toby Toby

Ahhh, I see, the alternative you've provided with the closure looks cleaner 👍️, thanks! I shouldn't have missed that in the docs 😅.

Okay, that makes sense, I'll use the resolveRelationUsing method for adding relationships. Is there any way we can add traits to the Waterhole\Models\User class in a similar way as adding relationships via the resolveRelationUsing method? I wanted to use this Laravel package, Overtrue\LaravelFavorite, but it requires the use of traits on the User model. I want to use this package to allow users to favourite my own models.