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

I use repositories for keeping my business logic separated from the data access logic and mostly follow bosnadev .

I then use services to keep more complex code out of my controllers or to implement third party libraries.

As for using services inside services, I don't really see any problems with that

0

As @LaurentMeganck said there shouldn't be a problem with a class using multiple services.

You can easily encapsulate multiple units of work behind a single service call if you want.

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.