Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to export multiple meetings into one .ics file? #627

Open
Kazio73 opened this issue Jul 17, 2024 · 0 comments
Open

How to export multiple meetings into one .ics file? #627

Kazio73 opened this issue Jul 17, 2024 · 0 comments

Comments

@Kazio73
Copy link

Kazio73 commented Jul 17, 2024

Currently, I am using a package in Laravel v11. The .ics file is being generated using Laravel mechanisms.

$service = new ExportIcsService($appointments);
$datas = $service->createIcsResponse();
Storage::disk('cal')->put('calendar.ics', '');

foreach ($datas as $data)
{
Storage::disk('cal')->append('calendar.ics', $data);
}
return Storage::disk('cal')->download('calendar.ics');

The file is being generated using the following commands.

$iComponents = (new CalendarFactory())->createCalendar($iCalendar);

Variable $iCalendar is containing all requested events. But the exported .ics file only contains the last event. How can I export the entire list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant