FilamentF
Filament16mo ago
taz

unique rule from filament is case sensitive ?

 public static function getForm(): array {
        return [
           Section::make()
                ->schema([
                    TextInput::make('name')
                        ->label("Product Name")
                        ->required()
                        ->unique(table: Product::class, ignoreRecord: true)
                        ->minLength(4)
                        ->maxLength(30)
                        ->autofocus(),
                ]),

I dont't know if it's a filament issue and how to fix it but I have a unique rule applied to the form field name. But the name "John" is considered similar to "john" and similar to "jóhn" I dont want that. Id like them to be considered different ! Thanks you . Filament is awesome btw!
Was this page helpful?