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

Too few arguments to function Illuminate\\Database\\Eloquent\\Model::fireModelEvent(), 0 passed in /site/zhihuiyuanqu/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 1634 and at least 1 expected #34

Closed hei0323 closed 2 years ago

hei0323 commented 2 years ago

When I execute code“ Enforcer::deletePermissionsForUser($sub);”,it make an error;

hei0323 commented 2 years ago

"laravel/framework": "^6.20", "laravel/tinker": "^2.5", "php": "7.4",

hsluoyz commented 2 years ago

@techoner

hei0323 commented 2 years ago

When I downgraded laravel-authz to 2.1.0, everything worked well.

leeqvip commented 2 years ago

@hei0323 Which version of Laravel-authz are you using ? Can you delete the vendor directory and install it again using composer install?