Day 106: More Lavarel Reading

Dan Esmail - 4/16/2023

Intro

After downloading Laravel into my website structure I've realized just how little I know about Laravel. This is mostly due to the large file structure and not knowing what everything is for. With this being the case I'm going to start barring my nose into Laravel's documentation to wrap my head around all this.

Getting started

Now that I have to start reading everything again I'm going to start reading the introduction first. It helps to re-read these sections since it gives a general outline of Laravel and helps me understand what I should be looking at next. It sums up what routes are and how they return views. It also brings up the point that views are just blade templates.

Blade Template

Now that is a blade template? Blade templates seem to be very much like what pug was for node and jinja2 is for Flask. These are all template engines. I have a very small understanding of what these do but I'm working to understand a bit more. From what I can tell it is hard-coded HTML that also can have PHP functions in the template to help make the page dynamic.

Routes

Now understanding blade templates a little bit more I can start building routes. This is going to be done within my routes folder. Where I'll show which view the routes are pointing to. Then I'll build a blade template to go within the view folder.

Conculsion

Now understanding blade templates a little bit more I can start building routes. This is going to be done within my routes folder. Where I'll show which view the routes are pointing to. Then I'll build a blade template to go within the view folder.


Day 1

Day 1