php-casbin / laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.
Apache License 2.0
271 stars 46 forks source link

Performance feedback #67

Closed outsource-zone closed 5 days ago

outsource-zone commented 1 month ago

If there are many permission points, time out may occur. You are advised to add rules in batches.

leeqvip commented 1 month ago

PHP-Casbin provides some batch adding methods, such as:

Enforcer::addPolicies([...]);

Please refer to: https://casbin.org/docs/management-api#addpolicies

outsource-zone commented 3 weeks ago

Oh, it's very useful to me. Thank you.

hsluoyz commented 5 days ago

@outsource-zone @leeqvip this issue can be closed