Support the ongoing development of Laravel.io →
posted 10 years ago
Architecture
Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

If you want to share code on several models you could use a trait.

Last updated 1 year ago.
0

What is a trait exactly ?

Last updated 1 year ago.
0

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

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.