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