Skip to content

[Mapped Cells] How to handle nested mapping / multiple mapped entities #3999

Closed Answered by typingbeaver
typingbeaver asked this question in Q&A
Discussion options

You must be logged in to vote

Created a PR (#4000) for nested mapping arrays.

Another soulution would be using

public function mapping(): array
{
    return collect([...])->dot()->toArray()
}

And denesting it afterwards with

collect($row)->undot()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by typingbeaver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant