Filament Confirm Password
Menambahkan confim password pada inputan create user
TextInput::make('password')
->label('Password')
->password()
->required()
->maxLength(255)
->revealable()
->dehydrateStateUsing(fn($state) => Hash::make($state))
->dehydrated(fn($state) => filled($state))
->required(fn(Page $livewire) => ($livewire instanceof CreateRecord)),
TextInput::make('password_confirmation')
->password()
->dehydrateStateUsing(fn($state) => Hash::make($state))
->dehydrated(fn($state) => filled($state))
->required(fn(Page $livewire) => ($livewire instanceof CreateRecord))
->maxLength(255)
->same('password')
->label('Confirm Password')
->revealable(),
Komentar
Posting Komentar