Join Joseph Lowery for an in-depth discussion in this video Establishing an HTML view, part of Learning Laravel.
Obviously with a web application,…returning either static or even dynamically…generated text is woefully inadequate.…So in this lesson, you'll learn how to…incorporate an HTML view.…You'll recall that Laravel is an MVC framework…where the V stands for view…and that a view is a visual representation of your app.…We've already seen a view in an action,…it's on the screen right now,…as well as the underlying code.…You'll see that code right on line 14 through 17.…
That's the default route in the routes.PHP file…discussed in the last lesson and that returns,…as you can see, a view.…Let's take a look at the code more carefully.…Now after the route class is invoked, it gets any…request to the site route, meaning that it's not…specified by other routes, and returns the class…view with the method make…and that has an argument of hello.…All of that is on line 16.…
So view make means make the view, right?…But what's the hello argument mean…and why is there no file extension?…Well, views are stored in the - wait for it, views folder,…
- Installing Laravel
- Handling testing
- Establishing an HTML view
- Connecting to a database
- Enabling version control
- Setting up-and-running unit tests
Skill Level Intermediate
1. Introduction to Laravel
2. Creating Initial Laravel Pages
3. Displaying Laravel Code
4. Creating a Laravel Application
5. Testing Your Laravel Code
- 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.