1
I need to mount an array in PHP (LARAVEL) and I’m not finding a way to do.
I have a user system with roles and Permissions. When I view the user, I list all the Permissions, but one below the other. Ex:
> users-index
> users-show
> users-create
> roles-create
> roles-delete
But I’d like to do the following:
Take all these Permissions and separate them by category to list in separate table, where this is the heading is the word before the "-" (USERS-index), ex array:
Arrayall = [ users = [ users-index users-show, users-create ]] roles = [ roles-create, roles-delete ] ]
I’m counting on ideas! Hugs
It seems that this will lead us to a giant response.
– Wallace Maxters