php-casbin / laravel-authz

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

Performance feedback #67

Closed outsource-zone closed 4 months ago

outsource-zone commented 5 months ago

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

leeqvip commented 5 months 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 5 months ago

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

hsluoyz commented 4 months ago

@outsource-zone @leeqvip this issue can be closed