$role->toArray()
Converts the most important role properties to an array
$role->toArray(): array
Return type
array
This method modifies the existing $role object it is applied to and returns it again.
Converts the most important role properties to an array
$role->toArray(): array
array
This method modifies the existing $role object it is applied to and returns it again.