下载了项目看了下,你这只是使用了casbin的库,但是在验证时貌似并没有使用casbin的model
phpxcn opened this issue · 4 comments
phpxcn commented
pl1998 commented
嗯 对的
phpxcn commented
我现在自己想试着去用Enforcer::enforce ,但是一直在报错
local.ERROR: array_combine(): Both parameters should have an equal number of elements {"userId":9,"exception":"[object] (ErrorException(code: 0): array_combine(): Both parameters should have an equal number of elements at /Users/ly/www/laravel-admin/vendor/casbin/casbin/src/CoreEnforcer.php:645
phpxcn commented
pl1998 commented
可以的 牛