PHP Class Flarum\Core\PasswordToken

Inheritance: extends Flarum\Database\AbstractModel
Datei anzeigen Open project: flarum/core Class Usage Examples

Public Properties

Property Type Description
$incrementing boolean Use a custom primary key for this model.

Protected Properties

Property Type Description
$dates
$table

Public Methods

Method 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 method

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

user() public method

Define the relationship with the owner of this password token.
public user ( ) : BelongsTo
return 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
return boolean

$table protected_oe property

protected $table