We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf29bb3 commit cc4338dCopy full SHA for cc4338d
app/Filament/Resources/UserResource.php
@@ -71,7 +71,12 @@ public static function formSchema()
71
->maxLength(255),
72
73
Forms\Components\TextInput::make('password')
74
+ ->required(fn (string $operation): bool => $operation === 'create')
75
->password()
76
+ ->afterStateHydrated(function (Forms\Components\TextInput $component, $state) {
77
+ $component->state('');
78
+ })
79
+ ->dehydrated(fn (?string $state): bool => filled($state))
80
81
82
Forms\Components\DateTimePicker::make('email_verified_at'),
0 commit comments