/models and what should be in /controllers folder?
Should SQL query be in /models? Or, is it better to separate any SQL queries into another folder, say repository and leave business logic (CRUD + API calls) in controllers?
the model should handle talking to the database
Обсуждают сегодня