schmeits/filament-character-counter
TextField, Textarea, RichEditor) with minimal invasive changes, adhering to Filament’s modular architecture. This ensures compatibility with existing Filament-based applications without requiring deep refactoring.maxLength, showCharacterCount), allowing TPMs to align it with brand-specific UX requirements.composer.json is recommended.maxLength) must still be handled server-side if critical (e.g., for security or compliance).TextField, Textarea, or RichEditor. Note current validation logic (e.g., rules(['max:280'])).composer require schmeits/filament-character-counter:"^5.0"
php artisan vendor:publish --tag="filament-character-counter-config".use Schmeits\FilamentCharacterCounter\Fields\TextField;
TextField::make('bio')
->maxLength(500)
->showCharacterCount(),
RichEditor, ensure the underlying editor supports character counting (default Filament editors likely do).^5.0 for v4/v5 compatibility.maxLength or styling as needed.maxLength config), RichEditor compatibility (test early).php artisan filament:debug) if integration fails.composer.json.remove schmeits/filament-character-counter) and restore original validation logic.How can I help you explore Laravel packages today?