In this video, learn how to write a standard view in Laravel to display the prominent information for looking at an overview of the records in your database.
- [Instructor] Our view layer is going to follow … a pretty simple pattern, we'll add a button … to link out to add a new booking, … and then we'll build the table … that will list all of our records. … To begin, we'll create our view Blade file at … resources, views, and then we'll create … a new directory in here for the bookings directory. … Inside of bookings, we'll create a new file … that we'll save as index.blade.php. … Blade, as we've mentioned already a few times, … is Laravel's PHP templating engine. … A templating engine is just a tool we use to render HTML. … Blade has a variety of features … that we'll explore throughout this course. … We've already seen some of them, … such as the ability to inherit and extend templates, … as well as the ability to create sections … so we can reduce duplication of code. … Blade templates can render just plain HTML, … or take pure PHP code that outputs HTML. … As we saw earlier, Blade templates are compiled … or produces in cache into just pure PHP code under the hood. …
- Exploring Laravel
- Setting up simple authentication
- Controllers and routes
- Create and index view
- Show, edit, and destroy views
- Writing scopes in Laravel Eloquent
- Creating one-to-one relationships
Skill Level Beginner
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 57m Intermediate
Ajax with PHP: Add Dynamic Content to Websiteswith Kevin Skoglund3h 37m Intermediate
What you should know1m 52s
2. Starting Your Project
3. The Create and Index Views
4. The Show, Edit, and Destroy Views
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.