laravel-authz icon indicating copy to clipboard operation
laravel-authz copied to clipboard

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

Results 7 laravel-authz issues
Sort by recently updated
recently updated
newest added

Now in laravel-authz the artisan commands are really cool and useful and maybe can be make more generic. For example, I have this situation for my roles: ` [role_definition] g...

enhancement

Language : PHP The framework:"laravel/lumen-framework": "^8.0", Package: "casbin/laravel-authz": "^3.1" ### Problem description: ```php / alice has the admin role Enforcer::addRoleForUser('alice', 'admin'); // bob has the member role Enforcer::addRoleForUser('bob', 'member'); Enforcer::addPermissionForUser('member',...

Hi, Lauthz\Facades\Enforcer has no type hints. It is recommended to add @method static. `namespace Lauthz\Facades; use Illuminate\Support\Facades\Facade; /** * @see \Casbin\Enforcer * @method static array getPermissionsForUser */ class Enforcer extends...

enhancement

Hi, I'm storing my model.conf remotly and would like to fetch it at runtime(and eventually cache it) I see that the config has a load from string option, I'm wondering...

enhancement

feat: use Laravel's built-in Manager class and integrate authorization Gates - Use Laravel's built-in abstract Manager class instead of ModelLoaderFactory (#71) - Integrate Laravel's built-in authorization Gates (#70) - Increased...

`ModelLoaderFactory` was added in #69. It is more expressive and elegant to use Laravel's built-in factory class. https://github.com/laravel/framework/blob/11.x/src/Illuminate/Support/Manager.php

enhancement

See: https://laravel.com/docs/11.x/authorization#gates

enhancement