From the course: Advanced Laravel

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Use gates

Use gates

- [Lecturer] Now that we have our instructor functionality ready, it's time to add some links to our navigation bar to schedule classes and view upcoming ones. Go to VS code and open navigation blade file. We have the navigation links here. Next to the dashboard, let's add two links. So copy this and paste it two times. One is schedule a class, and the other one, view upcoming ones. So let's say upcoming classes. Let's change the routes as well. This would be schedule.create, and this is schedule.index. We have to change the route name here as well to highlight the current route. So schedule.create, and this is schedule.index. Now we have to add these links down here in the responsive section as well, but I'm going to skip that for now. Okay, let's see what this looks like to the browser. And yes, we have the Schedule a Class linked correctly and Upcoming Classes as well. We can view them. However, if we log out…

Contents