PHP Class Flarum\Core\PasswordToken

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 ( integer $userId ) : static Generate a password token for the specified user.
user ( ) : BelongsTo Define the relationship with the owner of this password token.

Method Details

generate() public static méthode

Generate a password token for the specified user.
public static generate ( integer $userId ) : static
$userId integer
Résultat static

user() public méthode

Define the relationship with the owner of this password token.
public user ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

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