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
- [Vuejs]-How to put a converted date (to a given timezone) in a v-model in order to send such to the backend?
- [Vuejs]-VueJS – Display Input Image Kills Browser
Source:stackexchange.com