Skip to content
Discussion options

You must be logged in to vote

@pxpm

Oops, I managed to solve the problem. I believe it would be good if they added this to the documentation. You need to add the parameter "'include_all_form_fields' => true" for it to work. So it ended up like this:

In Field

           [ // select2_from_ajax: 1-n relationship
                'name' => 'city_id',
                'label' => 'Município', // Table column heading
                'type' => 'relationship',
                'ajax' => true,
                'model' => "App\Models\City", // foreign key model
                'entity' => 'city', // the method that defines the relationship in your Model
                'attribute' => 'name', // foreign key attribute that is shown to…

Replies: 2 comments 6 replies

Comment options

pxpm
Jun 5, 2024
Maintainer Author

You must be logged in to vote
1 reply
@helesjunior
Comment options

Comment options

You must be logged in to vote
5 replies
@pxpm
Comment options

pxpm Jun 5, 2024
Maintainer Author

@helesjunior
Comment options

@pxpm
Comment options

pxpm Jun 12, 2024
Maintainer Author

@helesjunior
Comment options

@pxpm
Comment options

pxpm Jun 12, 2024
Maintainer Author

Answer selected by pxpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1011 on June 05, 2024 07:30.