serenysoft / nova-permissions

Laravel Nova 4 Roles & Permissions
72 stars 27 forks source link

Too few arguments to function App\Providers\NovaServiceProvider::App\Providers\{closure}() #42

Closed werner-h closed 6 months ago

werner-h commented 8 months ago

[2024-03-26 09:46:20] local.ERROR: Too few arguments to function App\Providers\NovaServiceProvider::App\Providers{closure}(), 0 passed and exactly 1 expected {"userId":1,"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function App\Providers\NovaServiceProvider::App\Providers\{closure}(), 0 passed and exactly 1 expected at C:\laragon\www\staff-boarding\app\Providers\NovaServiceProvider.php:156) [stacktrace]

0 [internal function]: App\Providers\NovaServiceProvider->App\Providers\{closure}()

1 C:\laragon\www\staff-boarding\vendor\sereny\nova-permissions\src\Traits\ModelForGuardResolver.php(17): call_user_func(Object(Closure))

2 C:\laragon\www\staff-boarding\vendor\sereny\nova-permissions\src\Nova\Resource.php(69): Sereny\NovaPermissions\Nova\Resource->modelForGuard()

3 C:\laragon\www\staff-boarding\vendor\sereny\nova-permissions\src\Nova\Role.php(61): Sereny\NovaPermissions\Nova\Resource->userResource()

There seems to be an error relating with ldaprecord any ideas?