[Vuejs]-SPA architecture to enable features or component based on account permissions?

0👍

I suggest you take a look at Laratrust. It’s a fantastic package for creating roles and permissions in Laravel.

Vue is indeed the frontend, but your application’s logic is still performed in PHP, via Laravel. Your controllers will determine what a user’s permissions are and return the appropriate data/error accordingly. There’s a lot to describe here but there’s tons of great resources that do it.

Rather than describing how Vue and Laravel work together, I’d point you towards Laracasts. You can learn A LOT there off just the free videos alone, well worth the money though.

https://laracasts.com/series/learn-vue-2-step-by-step/episodes/26

https://laracasts.com/series/learn-vue-2-step-by-step/episodes/27

Leave a comment