public function sendVerificationLinkEmail(Request $request)
    {
        $this->validate($request, ['email' => 'required|email']);

        $broker = $this->getBroker();

        $credentials = $request->only('email');

        $response = Verification::broker($broker)->sendVerificationLink($credentials, function (Message $message) {
            $message->subject($this->getEmailSubject());
        });

        switch ($response) {
            case Contracts\VerificationBroker::VERIFICATION_LINK_SENT:
                return $this->getResendLinkEmailSuccessResponse($response);

            default:
                return $this->getResendLinkEmailFailureResponse($response);
        }
    }
public function sendVerificationLinkEmail(Request $request)
    {
        $this->validate($request, ['email' => 'required|email']);

        $broker = $this->getBroker();

        $credentials = $request->only('email');

        $response = Verification::broker($broker)->sendVerificationLink($credentials, function (Message $message) {
            $message->subject($this->getEmailSubject());
        });

        switch ($response) {
            case Contracts\VerificationBroker::VERIFICATION_LINK_SENT:
                return $this->getResendLinkEmailSuccessResponse($response);

            default:
                return $this->getResendLinkEmailFailureResponse($response);
        }
    }
public function sendVerificationLinkEmail ( Request $ request ) { $ this -> validate ( $ request , [ 'email' => 'required|email' ] ) ; $ broker = $ this -> getBroker ( ) ; $ credentials = $ request -> only ( 'email' ) ; $ response = Verification :: broker ( $ broker ) -> sendVerificationLink ( $ credentials , function ( Message $ message ) { $ message -> subject ( $ this -> getEmailSubject ( ) ) ; } ) ; switch ( $ response ) { case Contracts \ VerificationBroker :: VERIFICATION_LINK_SENT : return $ this -> getResendLinkEmailSuccessResponse ( $ response ) ; default : return $ this -> getResendLinkEmailFailureResponse ( $ response ) ; } }
Send a verification link to the given user.

@param \Illuminate\Http\Request $request
@return \Illuminate\Http\Response
Send a verification link to the given user .