Bug with RoleBooleanGroup::make('Roles') in User.php resource
Closed this issue · 1 comments
viterzbayraku commented
Hello.
I have an error in Nova Users resource when I'm adding this code RoleBooleanGroup::make('Roles'),
to app\Nova\User.php
Thank you for help.
local.ERROR: Vyuldashev\NovaPermission\RoleBooleanGroup::Vyuldashev\NovaPermission\{closure}(): Argument #1 ($permissions) must be of type Illuminate\Support\Collection, null given {"userId":1,"exception":"[object] (TypeError(code: 0): Vyuldashev\\NovaPermission\\RoleBooleanGroup::Vyuldashev\\NovaPermission\\{closure}(): Argument #1 ($permissions) must be of type Illuminate\\Support\\Collection, null given at /...../vendor/kiritokatklian/nova-permission/src/RoleBooleanGroup.php:20)
[stacktrace]
#0 [internal function]: Vyuldashev\\NovaPermission\\RoleBooleanGroup::Vyuldashev\\NovaPermission\\{closure}(NULL, Object(App\\Models\\User), 'roles')
viterzbayraku commented
Sorry i missed to modify the user model.