php-casbin / laravel-authz

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

Use Laravel's built-in abstract Manager class instead of ModelLoaderFactory #71

Open leeqvip opened 1 week ago

leeqvip commented 1 week ago

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