Skip to main content
Wafy's Tools

Main navigation

  • Home
  • About
  • Framework Learning

Breadcrumb

  1. Home
  2. Updating my PHP Framework Knowledge.

Laravel - What is MVC?

By Jeff , 28 May, 2026

Kind of knew already what MVC is. Laminas uses a MVC structure for their framework as well. It is pretty simple and a similar to what Laminas does, just in a slightly different way. With Laminas you have a route configuration in the module's config.php file. In there you do your dependency injection and setup of the Controller. With Laravel, they have (at least currently) a separate file for routes that is so far kind of hard coded. Where as the Laminas can be more dynamic. Again this is just a boot camp. 

The artisan script is convenient for creating Controllers. There is an option that create CRUD functions all set in the controller. You can even have it setup a Model for it. Which I am guessing we will learn in the next section. 

The View was something that we already had setup, just modified it to display some sample "chirps". It has a similar way of adding data to a view as Laminas. I do like how you can define the view though. Essentially parameters for the view function is the view name and an associative array of parameters.  In the view it is just a straight variable you can use. I am not liking the separation of the PHP functions though. They have an @foreach we used in the example. While simple, just seems to me to add a level of complexity, as you have to part the view for the function and then run the function. Where as if you just used a <?php escape you could use something that is already built in. Just seems odd, but rolling with it.

The lesson was definitely for a beginner, as is the target for this boot camp. I will dig some more when I complete the lessons. On to the next one on databases. 

Taxonomy
Javascript
PHP

Book navigation

  • Laravel - Getting Setup
  • Laravel - What is MVC?
  • Laravel - Working with the database
  • Laravel - Your First Route
RSS feed