Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorect keys filling for HasOne relationship #137

Open
Lagolass opened this issue Nov 25, 2024 · 0 comments
Open

Incorect keys filling for HasOne relationship #137

Lagolass opened this issue Nov 25, 2024 · 0 comments

Comments

@Lagolass
Copy link

Fields in custom resourse:

public function fields(NovaRequest $request)
    {
        return [
            Text::make(__('resource.title'), 'title')->translatable(),
            HasOne::make(__('resource.add_data.for_customers.title'), 'dataForCustomers', DataForCustomers::class),
        ];
    }

When my resource DataForCustomers::class have traslatable fileds:

public function fields(NovaRequest $request)
    {
        return [
            Text::make(__('resource.title'), 'title')->translatable(),
            Trix::make(__('resource.content'), 'content')->translatable(),
        ];
    }

then send the data, then the fields have no dataForCustomers key wrapper, form data:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant