Support the ongoing development of Laravel.io →
Laravel
Last updated 1 year ago.
0

Hey,

IMHO creating a service would be more useful if you want to encapsulate (reuse) functionality in a single class, like the one in your udemy course. Creating a helper would be only one single function doing one thing. You could create 3-4 helper functions for that one single service you posted, but that would decouple things that basically belong together.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

mrnew alejandromora99 Joined 21 Sep 2021

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.