Laravel Backends for Vue.js 3 and Nuxt

Create your account and start learning

This lesson is free, but requires you to login.

or

Protect Pages with Middleware

In this lesson, we use middleware to redirect anonymous users away from protected pages and redirect logged in users away from the login and register pages.

It is important to remember that we are working in an SPA. In such an environment, middleware isn’t truly a security feature but rather a UX feature. True security comes from limiting what data is sent back from the REST API.

Links