protected function sendVerificationCodeNotification($twoStepAuth, $deliveryMethod = null)
    {
        $user = Auth::User();
        if ($deliveryMethod === null) {
            $user->notify(new SendVerificationCodeEmail($user, $twoStepAuth->authCode));
        }
        $twoStepAuth->requestDate = Carbon::now();

        $twoStepAuth->save();
    }
protected function sendVerificationCodeNotification($twoStepAuth, $deliveryMethod = null)
    {
        $user = Auth::User();
        if ($deliveryMethod === null) {
            $user->notify(new SendVerificationCodeEmail($user, $twoStepAuth->authCode));
        }
        $twoStepAuth->requestDate = Carbon::now();

        $twoStepAuth->save();
    }
protected function sendVerificationCodeNotification ( $ twoStepAuth , $ deliveryMethod = null ) { $ user = Auth :: User ( ) ; if ( $ deliveryMethod === null ) { $ user -> notify ( new SendVerificationCodeEmail ( $ user , $ twoStepAuth -> authCode ) ) ; } $ twoStepAuth -> requestDate = Carbon :: now ( ) ; $ twoStepAuth -> save ( ) ; }
Send verification code via notify.

@param array  $user
@param string $deliveryMethod (nullable)
@param string $code

@return void
Send verification code via notify .