E
E
Emprove2019-02-07 14:55:01
Laravel
Emprove, 2019-02-07 14:55:01

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

2 answer(s)
A
Alex Wells, 2019-02-07
@Alex_Wells

The question has already been asked, here is my answer: How to manage roles and permissions in Laravel 5 and VUE.JS?

M
Mykola Ivashchuk, 2019-02-07
@mykolaim

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 question

Ask a Question

731 491 924 answers to any question