https://dev.to/dnsinyukov #concept-of-synchronization Concept of Synchronization For proper synchronization of your resources is important to understand the principles of Google API.
During the first synchronization, an initial query is performed for each resource in the collection that you want to synchronize.
public function callback(string $driver): RedirectResponse { /** @var ProviderInterface $provider */ $provider = $this->manager->driver($driver); /** @var Account $account */ $account = $provider->callback(); $accountId = app(AccountService::class)->createFrom($account, $driver); $account->setId($accountId); // Sync calendars of user account $provider->synchronize('Calendar', $account); return redirect()->to( config('services.'.
public function synchronize(string $resource, Account $account, array $options = []) { $resource = Str::ucfirst($resource); $method = 'synchronize'.