php-casbin/laravel-authz

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

hei0323 opened this issue · 4 comments

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

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

@techoner

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

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