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.
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.
Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community