SC
Best practices for Laravel 11 service layer pattern?
I am refactoring a large Laravel 11 application and want to properly implement a service layer pattern. Currently my controllers have become fat with business logic mixed in.
For example, my store method has 50+ lines of business logic before the redirect. I know this should be extracted into a service class.
My questions:
1. Should services be injected via constructor or method injection?
2. How do you handle services that need to call other services?
3. Any recommendations for organizing services in a domain-driven structure?
Would love to hear how others structure their Laravel apps at scale.