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

Unable to use FileAdapter adapter #7

Closed mouyong closed 3 years ago

hsluoyz commented 3 years ago

@techoner @yk17310320725

leeqvip commented 3 years ago

@mouyong You can specify adapter in the configuration file: https://github.com/php-casbin/laravel-authz#multiple-enforcers

mouyong commented 3 years ago

@techoner it's need users write CasbinFileAdapter ?

image

image

mouyong commented 3 years ago

when i use FileAdapter, it have some exceptioin.

image

image

because in \Lauthz\EnforcerManager:97-99, not resolve by different adapter.

image

hsluoyz commented 3 years ago

@techoner