PHP Class Flarum\Core\AuthToken

Inheritance: extends Flarum\Database\AbstractModel
Afficher le fichier Open project: flarum/core Class Usage Examples

Méthodes publiques

Свойство Type Description
$incrementing boolean Use a custom primary key for this model.

Protected Properties

Свойство Type Description
$dates
$table

Méthodes publiques

Méthode Description
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.

Method Details

generate() public static méthode

Generate an email token for the specified user.
public static generate ( $payload ) : static
Résultat static

getPayloadAttribute() public méthode

Unserialize the payload attribute from the database's JSON value.
public getPayloadAttribute ( string $value ) : string
$value string
Résultat string

scopeValidOrFail() public méthode

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
Résultat static

setPayloadAttribute() public méthode

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

Property Details

$dates protected_oe property

protected $dates

$incrementing public_oe property

Use a custom primary key for this model.
public bool $incrementing
Résultat boolean

$table protected_oe property

protected $table