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