소스 검색

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