laravel-nova-nested-form
laravel-nova-nested-form copied to clipboard
Make Singular Label and Plural Label Translatable
Make Singular Label and Plural Label Translatable
$this->singularLabel = Str::singular($this->name);
$this->pluralLabel = Str::plural($this->name);
suggest:
$this->singularLabel = $resource::singularLabel();
or
$this->singularLabel = __(Str::singular($this->name));
you can take new object from NestedForm then override variable value EX: $nestedForm = new NestedForm($name, $attribute, $resource) $nestedForm->pluralLabel = "name you want"