Laravel follows Model view controller pattern.
- Controller – Interact with Model and view.
- Model – Handles database manipulation.
- View – Display final UI to the user from where it can interact with the application.
Laravel comes with Blade templating engine which makes easier to create pages. Blade view file compiled into plain PHP code.
Blade view files has
You can use PHP code in it.
I am assuming you have already created a Laravel project if not then you can view my earlier tutorial.
In this tutorial, I will create a simple application where pass data to view.