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
From the course: Building Laravel and Vue.js 2 Web Apps
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…
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.
Contents
-
-
-
-
Integrating a layout6m 46s
-
(Locked)
Creating a model and seeding the database4m 46s
-
(Locked)
Building views with Blade templates5m 6s
-
(Locked)
Injecting props in Vue components4m 49s
-
(Locked)
Building a CRUD component5m 9s
-
(Locked)
Managing scrolling and focus4m 18s
-
(Locked)
Protecting routes and models with policies5m 5s
-
(Locked)
Building an API with Laravel Passport5m 1s
-
(Locked)
Calling an API from Vue7m 46s
-
-
-
-