method in a controller. So is it best practice to include logic in model instead a controller?
Always much better to keep deep logic in models, and then your controller will have simple checks and calling the respective methods in the model
Обсуждают сегодня