Skip to main content
Wafy's Tools

Main navigation

  • Home
  • About
  • Framework Learning

Breadcrumb

  1. Home
  2. Updating my PHP Framework Knowledge.

Laravel - Showing the feed

By Jeff , 28 May, 2026

This was a relatively short lesson. Pretty simple and showed off how to build components more. Like the Layout component it looks like you can build sub-views that you can put code to be displayed. Seems like a neat concept, verse building a view object to do similar things.

Essentially they split out the chirp section of the home view into it's own view. They show how the data from one view file get transferred to another. This is done by calling the file and adding a prop to the call. so for the chirp file it is <x-chirp :chirp=$chirp />. Where $chirp is the current chirp that is getting processed. It seems to cut down on the noise a bit, with a lot of variables. It also helps to centralize the output of a chirp if we needed to have it someplace else. 

They also showed an easy way to generate data. Well at least statically seeding the database. They have built in seeding objects where you can generate data. Which is kind of nice for development. 

Some things I need to look into is if there are view objects that can be built for some functions or is it limited to blade.php files. It looks like the next lesson is on forms and processing them. 

Taxonomy
Javascript
PHP

Book navigation

  • Laravel - Creating and storing Chirps
  • Laravel - Edit and delete Chirps
  • Laravel - Getting Setup
  • Laravel - Our first model
  • Laravel - Showing the feed
  • Laravel - What is MVC?
  • Laravel - Working with the database
  • Laravel - Your First Route
RSS feed