src/Http/Controllers/Tenantarea/EmailVerificationController.php
public function send(EmailVerificationSendRequest $request)
    {
        $result = app('rinvex.auth.emailverification')
            ->broker($this->getEmailVerificationBroker())
            ->sendVerificationLink($request->only(['email']));

        switch ($result) {
            case EmailVerificationBrokerContract::LINK_SENT:
                return intend([
                    'url' => route('tenantarea.home'),
                    'with' => ['success' => trans('cortex/auth::'.$result)],
                ]);

            case EmailVerificationBrokerContract::INVALID_USER:
            default:
                return intend([
                    'back' => true,
                    'withInput' => $request->only(['email']),
                    'withErrors' => ['email' => trans('cortex/auth::'.$result)],
                ]);
        }
    }
public function send(EmailVerificationSendRequest $request)
    {
        $result = app('rinvex.auth.emailverification')
            ->broker($this->getEmailVerificationBroker())
            ->sendVerificationLink($request->only(['email']));

        switch ($result) {
            case EmailVerificationBrokerContract::LINK_SENT:
                return intend([
                    'url' => route('tenantarea.home'),
                    'with' => ['success' => trans('cortex/auth::'.$result)],
                ]);

            case EmailVerificationBrokerContract::INVALID_USER:
            default:
                return intend([
                    'back' => true,
                    'withInput' => $request->only(['email']),
                    'withErrors' => ['email' => trans('cortex/auth::'.$result)],
                ]);
        }
    }
public function send ( EmailVerificationSendRequest $ request ) { $ result = app ( 'rinvex.auth.emailverification' ) -> broker ( $ this -> getEmailVerificationBroker ( ) ) -> sendVerificationLink ( $ request -> only ( [ 'email' ] ) ) ; switch ( $ result ) { case EmailVerificationBrokerContract :: LINK_SENT : return intend ( [ 'url' => route ( 'tenantarea.home' ) , 'with' => [ 'success' => trans ( 'cortex/auth::' . $ result ) ] , ] ) ; case EmailVerificationBrokerContract :: INVALID_USER : default : return intend ( [ 'back' => true , 'withInput' => $ request -> only ( [ 'email' ] ) , 'withErrors' => [ 'email' => trans ( 'cortex/auth::' . $ result ) ] , ] ) ; } }
Process the email verification request form.

@param \Cortex\Auth\B2B2C2\Http\Requests\Tenantarea\EmailVerificationSendRequest $request

@return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
Process the email verification request form .