PHP 클래스 Jrean\UserVerification\UserVerification

파일 보기 프로젝트 열기: jrean/laravel-user-verification

보호된 프로퍼티들

프로퍼티 타입 설명
$emailView string E-mail view name.
$mailer Illuminate\Contracts\Mail\Mailer Mailer instance.
$schema Illuminate\Database\Schema\Builder Schema builder instance.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Mail\Mailer $mailer, Illuminate\Database\Schema\Builder $schema ) : void Create a new instance.
emailView ( string $name ) : Jrean\UserVerification Set the e-mail view name.
generate ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean Generate and save a verification token for the given user.
process ( string $email, string $token, string $userTable ) : void Process the user verification for the given e-mail and token.
send ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Send by e-mail a link containing the verification token.
sendLater ( integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Send later by e-mail a link containing the verification token.
sendLaterOn ( string $queue, integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Send later on the given queue by e-mail a link containing the verification token.
sendQueue ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Queue and send by e-mail a link containing the verification token.
sendQueueOn ( string $queue, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean Queue on the given queue and send by e-mail a link containing the verification token.

보호된 메소드들

메소드 설명
emailLaterOnVerificationLink ( $queue, integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and send later on the given queue the e-mail with the verification token link.
emailLaterVerificationLink ( integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and send later the e-mail with the verification token link.
emailQueueOnVerificationLink ( string $queue, Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and push a job onto the given queue to send the e-mail with the verification token link.
emailQueueVerificationLink ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and push a job onto the queue to send the e-mail with the verification token link.
emailVerificationLink ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed Prepare and send the e-mail with the verification token link.
generateToken ( ) : string | boolean Generate the verification token.
getUserByEmail ( string $email, string $table ) : stdClass Get the user by e-mail.
hasColumn ( Illuminate\Contracts\Auth\Authenticatable $user, string $column ) : boolean Check if the given model talbe has the given column.
isCompliant ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean Determine if the given model table has the verified and verification_token columns.
isVerified ( stdClass $user ) : void Check if the given user is verified.
saveToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : boolean Update and save the model instance with the verification token.
updateUser ( stdClass $user ) : void Update and save user object.
verifyToken ( string $storedToken, string $requestToken ) : void Compare the two given tokens.
wasVerified ( stdClass $user ) : void Update and save the given user as verified.

메소드 상세

__construct() 공개 메소드

Create a new instance.
public __construct ( Illuminate\Contracts\Mail\Mailer $mailer, Illuminate\Database\Schema\Builder $schema ) : void
$mailer Illuminate\Contracts\Mail\Mailer
$schema Illuminate\Database\Schema\Builder
리턴 void

emailView() 공개 메소드

Set the e-mail view name.
public emailView ( string $name ) : Jrean\UserVerification
$name string
리턴 Jrean\UserVerification

generate() 공개 메소드

Generate and save a verification token for the given user.
public generate ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
리턴 boolean

generateToken() 보호된 메소드

Generate the verification token.
protected generateToken ( ) : string | boolean
리턴 string | boolean

getUserByEmail() 보호된 메소드

Get the user by e-mail.
protected getUserByEmail ( string $email, string $table ) : stdClass
$email string
$table string
리턴 stdClass

hasColumn() 보호된 메소드

Check if the given model talbe has the given column.
protected hasColumn ( Illuminate\Contracts\Auth\Authenticatable $user, string $column ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$column string
리턴 boolean

isCompliant() 보호된 메소드

Determine if the given model table has the verified and verification_token columns.
protected isCompliant ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
리턴 boolean

isVerified() 보호된 메소드

Check if the given user is verified.
protected isVerified ( stdClass $user ) : void
$user stdClass
리턴 void

process() 공개 메소드

Process the user verification for the given e-mail and token.
public process ( string $email, string $token, string $userTable ) : void
$email string
$token string
$userTable string
리턴 void

saveToken() 보호된 메소드

Update and save the model instance with the verification token.
protected saveToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$token string
리턴 boolean

send() 공개 메소드

Send by e-mail a link containing the verification token.
public send ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
리턴 boolean

sendLater() 공개 메소드

Send later by e-mail a link containing the verification token.
public sendLater ( integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$seconds integer
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
리턴 boolean

sendLaterOn() 공개 메소드

Send later on the given queue by e-mail a link containing the verification token.
public sendLaterOn ( string $queue, integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$queue string
$seconds integer
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
리턴 boolean

sendQueue() 공개 메소드

Queue and send by e-mail a link containing the verification token.
public sendQueue ( Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
리턴 boolean

sendQueueOn() 공개 메소드

Queue on the given queue and send by e-mail a link containing the verification token.
public sendQueueOn ( string $queue, Illuminate\Contracts\Auth\Authenticatable $user, string $subject = null, string $from = null, string $name = null ) : boolean
$queue string
$user Illuminate\Contracts\Auth\Authenticatable
$subject string
$from string
$name string
리턴 boolean

updateUser() 보호된 메소드

Update and save user object.
protected updateUser ( stdClass $user ) : void
$user stdClass
리턴 void

verifyToken() 보호된 메소드

Compare the two given tokens.
protected verifyToken ( string $storedToken, string $requestToken ) : void
$storedToken string
$requestToken string
리턴 void

wasVerified() 보호된 메소드

Update and save the given user as verified.
protected wasVerified ( stdClass $user ) : void
$user stdClass
리턴 void

프로퍼티 상세

$emailView 보호되어 있는 프로퍼티

E-mail view name.
protected string $emailView
리턴 string

$mailer 보호되어 있는 프로퍼티

Mailer instance.
protected Mailer,Illuminate\Contracts\Mail $mailer
리턴 Illuminate\Contracts\Mail\Mailer

$schema 보호되어 있는 프로퍼티

Schema builder instance.
protected Builder,Illuminate\Database\Schema $schema
리턴 Illuminate\Database\Schema\Builder