PHP 클래스 Flarum\Core\EmailToken

상속: extends Flarum\Database\AbstractModel
파일 보기 프로젝트 열기: flarum/core 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$incrementing boolean Use a custom primary key for this model.

보호된 프로퍼티들

프로퍼티 타입 설명
$dates
$table

공개 메소드들

메소드 설명
generate ( string $email, integer $userId ) : static Generate an email token for the specified user.
scopeValidOrFail ( Builder $query, string $id ) : static Find the token with the given ID, and assert that it has not expired.
user ( ) : BelongsTo Define the relationship with the owner of this email token.

메소드 상세

generate() 공개 정적인 메소드

Generate an email token for the specified user.
public static generate ( string $email, integer $userId ) : static
$email string
$userId integer
리턴 static

scopeValidOrFail() 공개 메소드

Find the token with the given ID, and assert that it has not expired.
public scopeValidOrFail ( Builder $query, string $id ) : static
$query Illuminate\Database\Eloquent\Builder
$id string
리턴 static

user() 공개 메소드

Define the relationship with the owner of this email token.
public user ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

프로퍼티 상세

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

protected $dates

$incrementing 공개적으로 프로퍼티

Use a custom primary key for this model.
public bool $incrementing
리턴 boolean

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

protected $table