I do everything you mentioned exactly the same way....Intervention with a helper in app/library. I'm not sure there's a better way, but I'm interested if there is.
If you want to share code on several models you could use a trait.
What is a trait exactly ?
Never saw this... If you use Traits you store them in a namespace in like Acme/traits/images.php ? Or maybe you have in mind a project on GitHub that use tratis in a similar case so I look at their implementation of it.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.