Permission resource references 'nova-permission-tool::permissions.roles' lang key, but key is missed. Same for the Role resource with 'nova-permission-tool::roles.permissions' key. Added missed keys to 'ru' translation.
Default $resolveCallback function in PermissionBooleanGroup class failing with null argument error. Same for RoleBooleanGroup class. Added nullable type hint and check for value before mapping.
Custom policies does't work if model classes are changed in 'config/permission.php' file because $model property of resources references Spatie models. Added dynamically setting of models in 'NovaPermissionTool.php'.
Permission resource references 'nova-permission-tool::permissions.roles' lang key, but key is missed. Same for the Role resource with 'nova-permission-tool::roles.permissions' key. Added missed keys to 'ru' translation.
Default $resolveCallback function in PermissionBooleanGroup class failing with null argument error. Same for RoleBooleanGroup class. Added nullable type hint and check for value before mapping.
Custom policies does't work if model classes are changed in 'config/permission.php' file because $model property of resources references Spatie models. Added dynamically setting of models in 'NovaPermissionTool.php'.
Please accept this PR.