Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Greeenone's avatar

Laravel and iCloud / Google calendar - some questions

Hello,

I'm using Fullcalendar for my web app and each event is stored in mysql db. Each customer have his own calendar with own events (Added by this customer)

Now I want to create synch with customers calendars. I want to do this like this:

  • User get custom url to his own calendar in csv format
  • User can add this url to his calendar and get all events

I would like to know which method is better? Create a new file on each event add / delete or append data to existing file

And I will use this: https://github.com/spatie/laravel-google-calendar

I want also to synch user calendar with my app calendar but is it possible?

0 likes
1 reply
bobbybouwmann's avatar

If you give a CSV to the person, it will be a one-time thing. You can't dynamically update that. There is. a protocol for that called iCal.

The only way to make it automatically sync is by using the iCal URL from Google. This way, you don't have to update the calendar itself and maintain it. I'm not sure if you can get that URL through the API, but you can read more about it here: https://support.google.com/calendar/answer/37648?hl=en

The only thing your application needs to do is create/update/delete the events in Google Calendar using the package.

1 like

Please or to participate in this conversation.