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

Made nested KeyVal fields possible #35

Closed
wants to merge 1 commit into from
Closed

Made nested KeyVal fields possible #35

wants to merge 1 commit into from

Conversation

danielbehrendt
Copy link
Contributor

No description provided.

@danielbehrendt
Copy link
Contributor Author

@tanthammar you can test the nested KeyValfields with the following:

Create a custom field:

<?php

namespace App\View;

use Tanthammar\TallForms\KeyVal;

class CustomKeyVal extends KeyVal
{
    public $allowed_in_array = true;
}

and then used it:

[
    KeyVal::make('Nested')->fields([
        \App\View\CustomKeyVal::make('Names')->fields([
            Input::make('Deutsch', 'de')->rules('required'),
            Input::make('English', 'en')->rules('required'),
        ]),
    ]),
]

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.

1 participant