Thank you for your answer!
Initially I was going for plain objects, but then I realized that I would repeat the same functions for almost each service(same goes for controllers).
So I thought I would use a single blueprint service class and in the constructor I would choose the right db class using a factory pattern(that’s at least how I see things, it seems to be working well).
Anyway, I make sure that business logic goes into services, and the controller is the ‘orchestrator’.
Best of luck!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.