Explorar el Código

badge title unique

Andrew hace 1 mes
padre
commit
2bc0913721
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/Filament/Resources/BadgeResource.php

+ 1
- 1
app/Filament/Resources/BadgeResource.php Ver fichero

@@ -46,7 +46,7 @@ class BadgeResource extends Resource
46 46
                     Group::make()->schema([
47 47
                         Group::make()->schema([
48 48
                             Translate::make()->schema(fn (string $locale) => [
49
-                                TextInput::make('title')->required($locale == 'zh_TW')->maxLength(40)->label('徽章標題'),
49
+                                TextInput::make('title')->unique()->required($locale == 'zh_TW')->maxLength(40)->label('徽章標題'),
50 50
                             ])
51 51
                                 ->locales(['zh_TW', 'en'])
52 52
                                 ->actions([