app/Http/Controllers/Auth/AuthController.php
/**
     * Redirect the user to the social provider authentication page.
     *
     * @return Response
     */
Redirect the user to the social provider authentication page.
@return Response
Redirect the user to the social provider authentication page . @return Response
public function authenticated(Request $request, $user)
    {
        if (!$user->activated) {
            $this->activationService->sendActivationMail($user);
            auth()->logout();
        return back()->with('warning', 'You need to confirm your account. We have sent you an activation code, please check your email.');
        }
        return redirect()->intended($this->redirectPath());
    }
public function authenticated ( Request $ request , $ user ) { if ( ! $ user -> activated ) { $ this -> activationService -> sendActivationMail ( $ user ) ; auth ( ) -> logout ( ) ; return back ( ) -> with ( 'warning' , 'You need to confirm your account. We have sent you an activation code, please check your email.' ) ; } return redirect ( ) -> intended ( $ this -> redirectPath ( ) ) ; }
Redirect the user to the social provider authentication page.
Redirect the user to the social provider authentication page .