Adding functions to a Model found in the vendor directory
Currently my situation is that I pulled in a Messenger dependency into my project.
It has a Thread model that is found here vendor/cmgmyr/messenger/src/Models/Thread.php.
Now I want to add some more relationships and functions into the Thread model. Without publishing that Thread model out of the vendor directory, what's the best way to add functions to it?
Ideally, I'd like to have a model titled Thread in my app directory that just inherits everything in the vendor Thread.php has but allows me to add my own code to it.