SocialAuthService $socialAuthService,
RegistrationService $registrationService,
LoginService $loginService
- )
- {
+ ) {
$this->middleware('guest')->only(['getRegister', 'postRegister']);
$this->socialAuthService = $socialAuthService;
$this->registrationService = $registrationService;
}
$user = $this->registrationService->registerUser($userData, $socialAccount, $emailVerified);
+ $this->showSuccessNotification(trans('auth.register_success'));
$this->loginService->login($user, $socialDriver);
- $this->showSuccessNotification(trans('auth.register_success'));
return redirect('/');
}
}