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

kareemmaradona's avatar

Google Calendar Implementation

Hi everyone.

I am looking for some guideline or tutorial to implement the latest Google Calendar into Laravel 5.3

I tried to implement all the steps i found here https://github.com/spatie/laravel-google-calendar it`s working but using a static calendar..

How can I make the member use his own calendar.

Thanks for any replies and help!

0 likes
7 replies
ahuggins's avatar

You are going to have to use OAuth to get authorization, store the token you get for the user, and then use the token to interact with the Google Calendar API.

2 likes
kareemmaradona's avatar

@ahuggins can you give an example for that, because it always using the calendar ID on config file for me .

kareemmaradona's avatar

@ahuggins Thanks for your replay, I already understand how to use Socialite to get access with OAuth2 i think it`s getting just the goole+ account , but the problem um facing here is how to connect the email (calendar-Email) to be used with laravel calendar .

ahuggins's avatar

What do you mean "connect the email (calendar-Email)"?

kareemmaradona's avatar

Here is an example :

I has to authenticate user to login to the app. user email was " [email protected] " now i want this user to see his events on google calendar . but my google calendar provider um using is only get the default calendar that i specified on config file .. so it`s always using [email protected]

I know um not explaining it right, but Um doing my best here :)

Please or to participate in this conversation.