PHP Trait Krucas\LaravelUserEmailVerification\VerifiesUsers

Inheritance: use trait RedirectsUsers
Mostrar archivo Open project: edvinaskrucas/laravel-user-email-verification

Public Methods

Method Description
getBroker ( ) : string | null Get the broker to be used during verification process.
getResend ( ) : Illuminate\Http\Response Display link resend form.
getVerify ( Illuminate\Http\Request $request, string | null $token = null ) : Illuminate\Http\Response Display verify message / verify account.
guestMiddleware ( ) Get the guest middleware for the application.
postResend ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Send a verification link to the given user.
sendVerificationLinkEmail ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Send a verification link to the given user.
showResendForm ( ) : Illuminate\Http\Response Display link resend form.
showVerifyMessage ( ) : Illuminate\Http\Response Display verify message.
verify ( Illuminate\Http\Request $request, null $token = null ) : Illuminate\Http\Response Display verify message / verify account.

Protected Methods

Method Description
getEmailSubject ( ) : string Get the e-mail subject line to be used for the reset link email.
getGuard ( ) : string | null Get the guard to be used during verification.
getResendLinkEmailFailureResponse ( string $response ) : Response Get the response for after the link could not be sent.
getResendLinkEmailSuccessResponse ( string $response ) : Response Get the response for after the link has been successfully sent.
getVerificationFailureResponse ( Illuminate\Http\Request $request, string $response ) : Response Get the response for after a failing verification.
getVerificationSuccessResponse ( string $response ) : Response Get the response for after a successful verification.
verifyUser ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : void Verify user.

Method Details

getBroker() public method

Get the broker to be used during verification process.
public getBroker ( ) : string | null
return string | null

getEmailSubject() protected method

Get the e-mail subject line to be used for the reset link email.
protected getEmailSubject ( ) : string
return string

getGuard() protected method

Get the guard to be used during verification.
protected getGuard ( ) : string | null
return string | null

getResend() public method

Display link resend form.
public getResend ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

getResendLinkEmailFailureResponse() protected method

Get the response for after the link could not be sent.
protected getResendLinkEmailFailureResponse ( string $response ) : Response
$response string
return Symfony\Component\HttpFoundation\Response

getResendLinkEmailSuccessResponse() protected method

Get the response for after the link has been successfully sent.
protected getResendLinkEmailSuccessResponse ( string $response ) : Response
$response string
return Symfony\Component\HttpFoundation\Response

getVerificationFailureResponse() protected method

Get the response for after a failing verification.
protected getVerificationFailureResponse ( Illuminate\Http\Request $request, string $response ) : Response
$request Illuminate\Http\Request
$response string
return Symfony\Component\HttpFoundation\Response

getVerificationSuccessResponse() protected method

Get the response for after a successful verification.
protected getVerificationSuccessResponse ( string $response ) : Response
$response string
return Symfony\Component\HttpFoundation\Response

getVerify() public method

Display verify message / verify account.
public getVerify ( Illuminate\Http\Request $request, string | null $token = null ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$token string | null
return Illuminate\Http\Response

guestMiddleware() public method

Get the guest middleware for the application.
public guestMiddleware ( )

postResend() public method

Send a verification link to the given user.
public postResend ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
return Illuminate\Http\Response

sendVerificationLinkEmail() public method

Send a verification link to the given user.
public sendVerificationLinkEmail ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
return Illuminate\Http\Response

showResendForm() public method

Display link resend form.
public showResendForm ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

showVerifyMessage() public method

Display verify message.
public showVerifyMessage ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

verify() public method

Display verify message / verify account.
public verify ( Illuminate\Http\Request $request, null $token = null ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$token null
return Illuminate\Http\Response

verifyUser() protected method

Verify user.
protected verifyUser ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : void
$user Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification
return void