I previously taught my self php, but now I want to migrate to a framework I have chosen Lavarel currently.
I have been able to do this directly in plain php, but I am having problem re-implementing it in the newest version of Lavarel.
I created a controller based on the google Calendar API.
The first step is authenticating, and that is where my problem exists.
I do the setup, display the google permissions, and accept the permissions. At this point Google does a callback.
If I route the callback to GoogleCalendar@callback then it calls the constructor again re-displaying the google authentication request in an infinite loop.
If I route the callback to another class it gets the tokens, but then the wrong class has the token. I have placed the token in a database, but how do I transfer execution back to the GoogleCalendar class.
return redirect()->action('GoogleCalendar@part2',['code' => $input['code']]);
This fails, even though the class and function exist I get an error message like they don't.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire