Skip to content

Allow to customize label and value array keys #3

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

Merged
merged 4 commits into from
Jul 29, 2022
Merged

Allow to customize label and value array keys #3

merged 4 commits into from
Jul 29, 2022

Conversation

rodrigopedra
Copy link
Contributor

I have a similar structure but much over complicated on a project.

Unfortunately the frontend expects the serialized data to be keyed like

[
  {"id": 1, "name": "Mary"},
  {"id": 2, "name": "John"}
]

Instead of using the keys label and value provided by this package.

This PR:

  • Adds a configuration file to allow customizing the serialization keys for the label and value properties
  • Add a relevant test case

@rubenvanassche
Copy link
Member

Looking great thanks!

@rubenvanassche rubenvanassche merged commit 815a76e into spatie:main Jul 29, 2022
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

Successfully merging this pull request may close these issues.

2 participants