public function makeRequestOneTimePasswordResponse()
    {
        event(
            app()->version() < '5.4'
                ? new OneTimePasswordRequested53($this->getUser())
                : new OneTimePasswordRequested($this->getUser())
        );

        $expectJson = app()->version() < '5.4'
            ? $this->getRequest()->wantsJson()
            : $this->getRequest()->expectsJson();

        return $expectJson
            ? $this->makeJsonResponse($this->makeStatusCode())
            : $this->makeHtmlResponse($this->makeStatusCode());
    }
public function makeRequestOneTimePasswordResponse()
    {
        event(
            app()->version() < '5.4'
                ? new OneTimePasswordRequested53($this->getUser())
                : new OneTimePasswordRequested($this->getUser())
        );

        $expectJson = app()->version() < '5.4'
            ? $this->getRequest()->wantsJson()
            : $this->getRequest()->expectsJson();

        return $expectJson
            ? $this->makeJsonResponse($this->makeStatusCode())
            : $this->makeHtmlResponse($this->makeStatusCode());
    }
public function makeRequestOneTimePasswordResponse ( ) { event ( app ( ) -> version ( ) < '5.4' ? new OneTimePasswordRequested53 ( $ this -> getUser ( ) ) : new OneTimePasswordRequested ( $ this -> getUser ( ) ) ) ; $ expectJson = app ( ) -> version ( ) < '5.4' ? $ this -> getRequest ( ) -> wantsJson ( ) : $ this -> getRequest ( ) -> expectsJson ( ) ; return $ expectJson ? $ this -> makeJsonResponse ( $ this -> makeStatusCode ( ) ) : $ this -> makeHtmlResponse ( $ this -> makeStatusCode ( ) ) ; }
Create a response to request the OTP.

@return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
Create a response to request the OTP .