Model View Controller (MVC) is one of the most popular software architecture in web development and is being adopted by major web frameworks like Laravel, Express and Rails. In short, to allow us to write more readable and maintainable code.
If you encountered a bug and you know that the software is using a particular architecture, you will know exactly where to look and hopefully fix that bug ASAP 🐛.
Here are some possible models in our app: In a MVC app, we usually define our model through an ORM (object-relational mapping).
Controllers are commonly used to : We have a lot of controllers to handle different type of HTTP requests.