M
M
Mr Freeman2017-07-06 10:16:42
Laravel
Mr Freeman, 2017-07-06 10:16:42

What name to come up with for business logic classes?

Hello. I can’t think of an adequate name for the classes in which the business logic will be implemented (hereinafter BL) for the second day.
What is the current situation (Laravel frame):
- there are controllers - they will have minimal code for interacting with views, redirects, and they will also feed information from BL classes
- there are models - they will implement communication between models (hasOne, belongsTo, etc) , scoping, field mapping and all sorts of things that directly affect the database and data (Eloquent encapsulation so to speak)
- providers - but here in the terminology of the frame these are services that cannot be used for your needs (under BL)
And now I want another class environment, like /App/BusinessLogicClasses/ - where we could already build complex queries, some kind of filtering, logging somewhere, and so on. None of the structures described above are suitable for this. Maybe there are already nice names for a similar role? For example, in past projects, for this I used, for example, App/Providers/PostProvider.php - but here this name is already taken :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question