diff --git a/app/Filament/Resources/ReferenceResource.php b/app/Filament/Resources/ReferenceResource.php index f4b1d05a..7dd75503 100644 --- a/app/Filament/Resources/ReferenceResource.php +++ b/app/Filament/Resources/ReferenceResource.php @@ -41,9 +41,11 @@ public static function form(Form $form): Form "male" => "Mężczyzna", "female" => "Kobieta", ]), - Forms\Components\TextInput::make("position") + TranslatableContainer::make( + Forms\Components\TextInput::make("position") ->label("Stanowisko") - ->maxLength(255), + ->maxLength(255) + )->requiredLocales(config("app.translatable_locales")), Forms\Components\TextInput::make("company") ->label("Firma") ->maxLength(255), diff --git a/app/Models/Reference.php b/app/Models/Reference.php index 7677ce6e..afa56063 100644 --- a/app/Models/Reference.php +++ b/app/Models/Reference.php @@ -27,6 +27,7 @@ class Reference extends Model public $translatable = [ "description", + "position", ]; protected $fillable = [ "creator_name",