PHP Класс Flarum\Core\AuthToken

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

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

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

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

Свойство Тип Описание
$dates
$table

Открытые методы

Метод Описание
generate ( $payload ) : static Generate an email token for the specified user.
getPayloadAttribute ( string $value ) : string Unserialize the payload attribute from the database's JSON value.
scopeValidOrFail ( Builder $query, string $id ) : static Find the token with the given ID, and assert that it has not expired.
setPayloadAttribute ( string $value ) Serialize the payload attribute to be stored in the database as JSON.

Описание методов

generate() публичный статический Метод

Generate an email token for the specified user.
public static generate ( $payload ) : static
Результат static

getPayloadAttribute() публичный Метод

Unserialize the payload attribute from the database's JSON value.
public getPayloadAttribute ( string $value ) : string
$value string
Результат string

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

setPayloadAttribute() публичный Метод

Serialize the payload attribute to be stored in the database as JSON.
public setPayloadAttribute ( string $value )
$value string

Описание свойств

$dates защищенное свойство

protected $dates

$incrementing публичное свойство

Use a custom primary key for this model.
public bool $incrementing
Результат boolean

$table защищенное свойство

protected $table