phpsa/filament-password-reveal
Password field builder pattern, allowing customization via closures (e.g., conditional reveal logic). This fits well in products requiring dynamic UI behavior (e.g., role-based password visibility).copyable() doesn’t expose passwords in logs/console (Filament’s default behavior should mitigate this).composer require phpsa/filament-password-reveal
filament-password-reveal:publish).TextInput::make('password') with Password::make('password')->revealable()->copyable().use Filament\Forms\Components\Password;
Password::make('api_key')
->revealable()
->copyable()
->generateIcon('heroicon-o-shield-check')
->passwordLength(16);
rules->password).showIcon()/hideIcon().composer update phpsa/filament-password-reveal).wire:log to inspect field interactions.revealable() vs. initiallyHidden()").laravel-validator for real-time feedback.| Risk | Impact | Mitigation |
|---|---|---|
| Filament upgrade breaks compatibility | Feature loss until patch is released | Test against Filament’s beta releases. |
| JavaScript errors (e.g., Alpine.js conflict) | Broken reveal/copy functionality | Isolate package in a test environment first. |
| Security misconfiguration (e.g., exposing passwords in logs) | Data leak risk | Audit Filament’s default logging behavior. |
| Icon display issues | Poor UX | Use fallback icons or custom SVG paths. |
revealable(), copyable(), and generatable() methods.How can I help you explore Laravel packages today?