Closed jwktje closed 4 years ago
I figured out this was because of an outdated Nova version.
Follow up question before you close this issue;
Is there a way to display RoleBooleanGroup in the list by default without having to click "View"?
What I ideally would want is :
Is there a way to display RoleBooleanGroup in the list by default without having to click "View"?
What I ideally would want is :
* Have one role per user * Show that role directly in the index view of the Users
Try putting this in your fields()
method:
RoleBooleanGroup::make(__('Roles'), 'roles')->hideFromIndex(),
Text::make(__('Role'), function () {
return $this->roles->map->name->join(', ');
})->onlyOnIndex(),
Reference: https://nova.laravel.com/docs/2.0/resources/fields.html#computed-fields
Fresh install gives me this error on creating a role