daravel_permission 1.14.0
daravel_permission: ^1.14.0 copied to clipboard
Roles and permissions in the database for Daravel, on spatie/laravel-permission's tables, with middleware, gate integration and an in-memory cache.
Changelog #
1.14.0 #
-
Added: a revocation is relayed through the coordinator (
PermissionRegistrar.listen, channeldaravel_permission:invalidate), so the other worker isolates drop their caches as soon as the message lands instead of at their next read of the shared version (up to a second). -
Fixed: the per-isolate access cache is bounded (
PermissionRegistrar.maxCachedModels, 10 000;cachedModels) and kept in order of last use, so a sweep drops cold models, not the ones checked on every request: one entry per model ever checked stayed until the isolate exited. -
Fixed:
hasRole,hasAllRolesandhasExactRolesgiven aRoleof another guard no longer match a role of the same name under the model's guard (Spatie comparesRoleobjects by key).
1.12.0 #
- First release:
withPermissions(),HasRoles,RoleandPermissionon spatie/laravel-permission's tables (CreatePermissionTables), therole,permissionandrole_or_permissionmiddleware, a gate hook, guards, wildcards, a super-admin role, thepermission:*commands (package:daravel_permission/commands.dart, apart so the server does not compile the CLI) and a cross-isolate cache.