-1
I am developing an API, and one of the modules is the ACL(access control list) in the Laravel Framework.
I came to a problem that I haven’t found plausible solutions yet, which is like testing values that get more than one parameter in it.
In my case I’m creating Roles
and in those Roles
, the moment I go to create them, I need to pass the Permissions
that she will own on Postman. In the current scenario I can only link to a Permission
.
I used these examples like this:
campo [1, 2, 3]
campo {1, 2, 3}
array[campo] 1,2,3
I want to register n
permissions for that new Rule`.
Calls the field of
permissions[]
, square brackets and replay the field as often as you like, similar to PHP’s own syntax to add the value to the array.– Woss
within each
permissions[]
will be a new field that will have aid
, more or less that?– Romulo Sousa