Lesson locked
Please enrol in the course or become a Pro member to access this lesson.
Enrol to course
Are you already enrolled? Log in to
continue learning.
Authenticated users
We have a user dashboard that should be accessible to only authenticated users, but as it stands, anyone can kinda access it. In this lesson, we'll be adding a way to enforce that the dashboard is indeed accessible to only authenticated users.
What you'll learn
- Restrict routes access using a middleware