Answer the question
In order to leave comments, you need to log in
Differentiation of UI by rights in VueJS + PHP?
There is a need to very flexibly differentiate the interface by roles / actions with the ability to change this goodness of each user (read, save to the database). For example, for the front there is stalniy/casl . Yes, the tool is good, but what about the rights on the backend (laravel) when making HTTP requests to the API? Why not keep two databases: one for the front, the other for the backend api? What are the best practices?
Answer the question
In order to leave comments, you need to log in
The question has already been asked, here is my answer: How to manage roles and permissions in Laravel 5 and VUE.JS?
Laravel has a Policy where you can specify any rules for accessing a particular resource/action.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question