1
How to allow or prevent a user from accessing a particular page? Let’s say the user is not allowed to access the page finanças
. Where do I inform on the route of vuejs the access permissions of this page? Remembering that these permissions will be set in localStorage from a backend in Laravel.
You think it’s a good idea to have the permission validations on the frontend?
– Jéf Bueno
No. I can’t imagine what the best solution is. With the pure Aravel, I can work smoothly with these permissions, however, now with the vuejs, separating frontend and backend, I don’t know how to work these permissions since one wheel independent of the other. I saw a tutorial on youtube where, after login, with JWT, the backend sends a token to the frontend but only validation. When making a request, vuejs sends this token again and the backend validates or does not allow the execution of the operation. In short, I do not know how to authenticate, allow with Laravel and vuejs.
– Felipe Paz