ensurePlatformEnabled(); $workspace = $request->user()->currentWorkspace; if (! $workspace) { return redirect()->route('app.workspaces.create'); } $this->authorize('manageAccounts', $workspace); return $this->redirectToProvider($request, $this->driver, $this->scopes); } public function callback(Request $request): View { return $this->handleCallback($request, $this->platform, $this->driver); } }