From the course: Building Laravel and Vue.js 2 Web Apps

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Building views with Blade templates

Building views with Blade templates

From the course: Building Laravel and Vue.js 2 Web Apps

Start my 1-month free trial

Building views with Blade templates

- [Instructor] Now we'll finish up our restaurant home page by using blade templating to display the categories from the database. Let's remove this slash route here and we'll want to use a home controller method to prepare the data for the home view. So we'll just change home to slash here so that we can serve the home page right on the bare domain like we were doing before. And we don't need the verified middleware here since we don't care if users viewing the home page are verified or even authenticated. Now in various controllers, such as the login controller, there are places where it redirects the user to home but since we don't have home anymore I'm going to use Control + Shift + H to find and replace and I'm going to look for equals space slash home end quotes and just replace that with slash. So if I hit enter now I see the places in these various controllers where the redirect to property is set and I'm going to click this to replace all. And now that's taken care of. In…

Contents