ソースを参照

badge title unique

Andrew 1 ヶ月 前
コミット
2bc0913721
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      app/Filament/Resources/BadgeResource.php

+ 1
- 1
app/Filament/Resources/BadgeResource.php ファイルの表示

@@ -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([