Property | Type | Description | |
---|---|---|---|
$emailView | string | E-mail view name. | |
$mailer | Illuminate\Contracts\Mail\Mailer | Mailer instance. | |
$schema | Illuminate\Database\Schema\Builder | Schema builder instance. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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. |
public __construct ( Illuminate\Contracts\Mail\Mailer $mailer, Illuminate\Database\Schema\Builder $schema ) : void | ||
$mailer | Illuminate\Contracts\Mail\Mailer | |
$schema | Illuminate\Database\Schema\Builder | |
return | void |
protected emailLaterOnVerificationLink ( $queue, integer $seconds, Illuminate\Contracts\Auth\Authenticatable $user, string $subject, string $from = null, string $name = null ) : mixed | ||
$seconds | integer | |
$user | Illuminate\Contracts\Auth\Authenticatable | |
$subject | string | |
$from | string | |
$name | string | |
return | mixed |
protected generateToken ( ) : string | boolean | ||
return | string | boolean |
protected getUserByEmail ( string $email, string $table ) : stdClass | ||
string | ||
$table | string | |
return | stdClass |
protected isCompliant ( Illuminate\Contracts\Auth\Authenticatable $user ) : boolean | ||
$user | Illuminate\Contracts\Auth\Authenticatable | |
return | boolean |
protected isVerified ( stdClass $user ) : void | ||
$user | stdClass | |
return | void |
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 | |
return | boolean |
protected updateUser ( stdClass $user ) : void | ||
$user | stdClass | |
return | void |
protected wasVerified ( stdClass $user ) : void | ||
$user | stdClass | |
return | void |
protected Mailer,Illuminate\Contracts\Mail $mailer | ||
return | Illuminate\Contracts\Mail\Mailer |