Remove Sheet Parent Array Import to Collection or Array #3444
Answered
by
patrickbrouwers
PanjiNamjaElf
asked this question in
Q&A
-
I want import Excel but only on sheet index[0], but when I use toCollection or toArray method the rows wrapped on sheet index array: Here is my code:
Controller:
Expected Result:
Actual Result:
How to remove the wrapped parent array ? |
Beta Was this translation helpful? Give feedback.
Answered by
patrickbrouwers
Nov 29, 2021
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PanjiNamjaElf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$rows->first()->toArray()