Your first view will take everything you have learned about Laravel and apply it in order to see your code produce a new fully functional webpage.
- [Instructor] We now have all the pieces together … to build a page to display and list the rooms for our hotel. … Our route in routes web.php on line 24 … gives us the ability to define the URL … for where we can let people access the content, … as well as the controller for the logic … for this page is going to live. … In our app, http, controllers, ShowRoomsController, … we actually define the logic to talk to our database, … and return the response. … The last piece of the puzzle here, is we need to build … a page for this content to be displayed. … We'll do that now, by creating a new folder … in our resources, views, directory. … This folder will be called rooms, … and in here we'll create a new file, … we'll save it as index.blade.php. … In this file, we'll want to extend our template … just like we did on our home page. … We can do that on line one with @extends, … parentheses, and in single quotes, layouts.app. … We'll now display the content in our content section … in the template, with, on line three, @section, …
- 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.