How will we page dynamic data to sheets? #3677
Replies: 5 comments 1 reply
-
Your question is not really clear to me. Please try to explain the expected behaviour a bit more. |
Beta Was this translation helpful? Give feedback.
-
public function sheets(): array we need dynamic multiple sheets |
Beta Was this translation helpful? Give feedback.
-
public function sheets(): array |
Beta Was this translation helpful? Give feedback.
-
From the logic above, we obtain multiple pages, but they are all empty sheets. |
Beta Was this translation helpful? Give feedback.
-
Thank you; we received the desired result. once more, I appreciate all of your help. |
Beta Was this translation helpful? Give feedback.
-
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1
What version of Laravel are you using?
9
What version of PHP are you using?
8.1
Describe your issue
https://docs.laravel-excel.com/3.1/imports/multiple-sheets.html#multiple-sheets
we need to create multiple dynamic sheets
public function sheets(): array
{
$sheets1 = [];
$i=0;
foreach ($testdata as $key => $data) {
$sheets1[$i] = [
new GanttWithMultipleExport( $data)
];
$i++;
}
$sheets=$sheets1;
return $sheets;
}
How can the issue be reproduced?
no idea
What should be the expected behaviour?
multiple sheet with dynamic
Beta Was this translation helpful? Give feedback.
All reactions