What is Laravel and How does it Work?

Laravel is a web framework for making custom applications. It runs on PHP, and is entirely free and open source. PHP stands for Hypertext Preprocessor that is a widely-used open source general-purpose scripting language suited for web development and can also be embedded into HTML.

So how does Laravel work? Laravel uses a design pattern called Model-View-Controller, or MVC

MVC Design Pattern

Model represents that shape of the data that your application operates on.

Subsequently, Controller interacts with the model. If the user wants to see their posts page, the controller talks to the model which is often just the database and retrieves the info. In short, the controller contains most of the logic of your application.

Furthermore, the controller uses the retrieved info to construct a View. It is a template which the model can be plugged into and displayed.

It can also be manipulated by the controller. The view is all of your application’s HTML components.

For a more ideas about Laravel, visit this website https://www.cloudsavvyit.com/1535/what-is-laravel-and-how-do-you-get-started-with-it/.

Leave a Comment

Your email address will not be published. Required fields are marked *