authorize('update', $workspace); if ($workspace->hasConnectedPlatform($this->platform->value)) { return back()->with('error', 'Esta plataforma já está conectada.'); } return $this->redirectToProvider($workspace, $this->driver, $this->scopes); } public function callback(Request $request): RedirectResponse { return $this->handleCallback($request, $this->platform, $this->driver); } }