Skip to content

Commit

Permalink
- add position in English
Browse files Browse the repository at this point in the history
  • Loading branch information
EwelinaSkrzypacz committed Oct 22, 2024
1 parent c8d1654 commit e9f13db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Filament/Resources/ReferenceResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 1 addition & 0 deletions app/Models/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Reference extends Model

public $translatable = [
"description",
"position",
];
protected $fillable = [
"creator_name",
Expand Down

0 comments on commit e9f13db

Please sign in to comment.