A
A
Abc Edc2015-10-30 11:37:06
Design patterns
Abc Edc, 2015-10-30 11:37:06

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

1 answer(s)
A
Alexey Ukolov, 2015-10-30
@gleber1

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 question

Ask a Question

731 491 924 answers to any question