Optimize performance by allowing multiple parameter types.
Closed this issue · 0 comments
eneadm commented
Performance is not so good when checking against multiple permissions and/or roles, this could be optimized by allowing multiple parameter types: string, array, Collection, Enum.
Example:
$user->hasPermission(['create', 'update'])