Answer the question
In order to leave comments, you need to log in
What is the UseCase application layer in lravel 5.1?
I want to introduce a "clean architecture" in the Laravel application, but there seems to be no layer between controllers and models out of the box, that is, UseCase, or maybe there is, but I don't know?
Answer the question
In order to leave comments, you need to log in
UseCase - this is the logic of your application, it is by definition different every time, so you can't wrap it in any layer. On the other hand, there are Jobs (aka Commands) that help to take business logic out of controllers. But the commands themselves are not recommended to be made too thick.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question