Skip to content

Commit

Permalink
Merge pull request #6 from saadj55/patch-1
Browse files Browse the repository at this point in the history
Update Roles field to use MultiSelect
  • Loading branch information
3x1io authored Jul 10, 2022
2 parents 6ed0f87 + a265ca7 commit e598b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function form(Form $form): Form
->password()
->maxLength(255)
->dehydrateStateUsing(fn ($state) => !empty($state) ? Hash::make($state) : ""),
Forms\Components\BelongsToManyMultiSelect::make('roles')->relationship('roles', 'name')->label(trans('filament-user::user.resource.roles')),
Forms\Components\MultiSelect::make('roles')->relationship('roles', 'name')->label(trans('filament-user::user.resource.roles')),
]);
}

Expand Down

0 comments on commit e598b21

Please sign in to comment.