MVC Design Pattern

Model (Eloquent)

A models allows to view, insert, update, and delete records from a database table. Laravel includes Eloquent, an object-relational mapper (ORM) to interact with a database. When using Eloquent, each database table has a corresponding “Model” that is used to interact with that table


The view is what the user sees. It is the HTML portion of the codebase that defines the structure, layout, loads CSS files, references javascripts, and most importantly receives the data from the controller and then renders it for the user. 


If a user makes a request, a controller is loaded. A controller receives a request and provides a response. The controller must delegate to fetch the necessary information from the database with the Model. Once the controller has delegated to the model, the next step is to load the view.