From the course: Laravel 5 Essential Training: 1 The Basics
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Loading a view - Laravel Tutorial
From the course: Laravel 5 Essential Training: 1 The Basics
Loading a view
- [Instructor] Among the important task that the controller needs to do is to load the view that will show the HTML that will render something useful to the user. For example, a form, an information page, a client page, a list of clients, a list of available rooms, and so on. So let's create and load a view. We're going to try and have a nice and clean structure by assigning each controller a folder and each method an HTML file for the view. So let's open our side bar with Command + D or Control + D in Windows users, and let's go to our resources folder, and our view folder, and right click, and New Folder. Client, I'm going to go ahead and do this very quickly. Feel free to pause the video until you get to the same place. Now let's do the same for every method that we have. Let's create a blade file, index.blade.php, and I'm going to go ahead and do this quickly. Feel free to pause the video until you get to the same place. I'm going to close the rest of the files with right click…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.