Laravel tutorial for beginners
Explanation MVC –
- Model – It is responsible for managing the data. It stores and fetches the data from the database and contains the logics implemented by the application.
- View – It is also called presentation layer which is responsible for presentation of the data which is getting fetched from the database by model. It basically contains the template files i.e. how the web page will look like.
- Controller – It is the main bridge between model and a view because it contains a logic which processes the http request made by the user, calls the model to perform the requested operation, and sends back the data to the view. View then formats the data to be presented to the user as an HTML output.