spatie translatable how to define form schema in a correct way

Hello all, could you please give me guidance how suppose to define the form schema for the translatable fields? My issue: - if I add the localswitcher to the create and edit page, I define the schema as following:
return $form
->schema([
TextInput::make("name ")
->label(__('Name'))
->required()
->maxLength(255)

]);
return $form
->schema([
TextInput::make("name ")
->label(__('Name'))
->required()
->maxLength(255)

]);
But I receive the following validation error:
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?