PHP Класс Flarum\Core\EmailToken

Наследование: extends Flarum\Database\AbstractModel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$incrementing boolean Use a custom primary key for this model.

Защищенные свойства (Protected)

Свойство Тип Описание
$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