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

Make a repeatable field #14

Open
milewski opened this issue Oct 15, 2020 · 0 comments
Open

Make a repeatable field #14

milewski opened this issue Oct 15, 2020 · 0 comments

Comments

@milewski
Copy link
Member

milewski commented Oct 15, 2020

I think it should work like this:

Repeatable::make('Profile', [
    EditableField::make('Name'),
    EditableField::make('Age'),
])->rules('min/max')

With this structure, the frontend would be able to create some sort of repeatable component and post the result as an array, this is very similar to a JsonField but the difference would be that it only works with array

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