Replies: 3 comments 1 reply
-
I think a table is a much better fit than a Matrix field in this case. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please, if it is not much trouble , can you please provide me an example? I am trying something like Matrix::make('team.users.')
->title('Members list')
->columns(['name', 'roles'])
->fields([
'name' => Relation::make('team.users')
->fromModel(User::class, 'name')
->chunk(10),
'roles' => Select::make()->multiple()->fromModel(Role::class, 'name')->required(),
]), but the only thing can do, is to fill the right number of fields, with empty data |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm having same problem, getting empty data ,any soluation? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I am trying to learn the package, facing some issues (suppose based on documentation and my familiarity to this package)
Let's imagine we have a
TeamEditScreen
and want to create aLayout
to list the team members combined with their roles (multiple)Can anyone please help me hot to combine the proper fields in order to achieve this?
The team relationships are based on jetstream implementation, where team has multiple users (rel:users) through an intermediate table (intermediate model: Membership ), pivoting roles
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions