Laravel rights management how to achieve local management?

read several laravel permission management packages, such as https://github.com/mrterryh/P., https://github.com/spatie/lar., which are all based on operations, for example, if you have read_articles permission, you can read all articles. If I want to limit reading to only some people"s articles, I have to use Policies to define it myself, so what"s the point of using a rights management package?

Mar.09,2021

the general rights management package is the implemented RBAC (role-based access control). To refine it to obtain different data according to the user, it can be realized through the scope of the Laravel query statement.

Menu