Support the ongoing development of Laravel.io →
posted 9 years ago
Architecture
Last updated 2 years ago.
0

make a static function to upload images and call that?

0

Use an event, keep all code in the event handler and outside the controller. For example, I have an event called "Upload" and a handler called "Uploaded" and in the controller I simply fire the event passing in what details I need.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nino22 nino22 Joined 28 Nov 2014

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.