0

I have been looking all over the internet for different ways to implement multi-level. My issue is I want admin users to be able to sign specific permissions to users. For example

User 1: Manage Docs , View Images ... User 2: Manage Docs , Delete and View Images.

I was thinking of using a table called user permissions. And create a link between the user and the permissions. Just how would I check against this table. I do not have any code as of yet as I am trying to understand how this could be implemented.

tom Bannister
  • 149
  • 2
  • 12

1 Answers1

0

There is an library for laravel called Sentry, it helps you out to handle user's permissions as you're describing through a JSON.

Here is how to implement it in Laravel 5.

Here Documentation of library

Hope this helps!

Community
  • 1
  • 1
Jose Rojas
  • 3,490
  • 3
  • 26
  • 40