class SocialController extends Controller
{
- protected SocialAuthService $socialAuthService;
- protected RegistrationService $registrationService;
- protected LoginService $loginService;
-
- /**
- * SocialController constructor.
- */
public function __construct(
- SocialAuthService $socialAuthService,
- RegistrationService $registrationService,
- LoginService $loginService
+ protected SocialAuthService $socialAuthService,
+ protected RegistrationService $registrationService,
+ protected LoginService $loginService,
) {
$this->middleware('guest')->only(['register']);
- $this->socialAuthService = $socialAuthService;
- $this->registrationService = $registrationService;
- $this->loginService = $loginService;
}
/**
$this->socialAuthService->detachSocialAccount($socialDriver);
session()->flash('success', trans('settings.users_social_disconnected', ['socialAccount' => Str::title($socialDriver)]));
- return redirect(user()->getEditUrl());
+ return redirect('/my-account/auth#social-accounts');
}
/**