class RegistrationToken extends AbstractModel
Properties
| bool | $timestamps | Indicates if the model should be timestamped. Turn off by default. | from AbstractModel |
|
| protected callable[] | $afterSaveCallbacks | An array of callbacks to be run once after the model is saved. | from AbstractModel |
|
| protected callable[] | $afterDeleteCallbacks | An array of callbacks to be run once after the model is deleted. | from AbstractModel |
|
| static | $customRelations | from AbstractModel |
|
|
| static | $dateAttributes | from AbstractModel |
|
|
| static | $defaults | from AbstractModel |
|
|
| int|null | $id | from AbstractModel |
|
|
| protected array | $dates | The attributes that should be mutated to dates. |
|
|
| protected | $casts |
|
||
| bool | $incrementing | Use a custom primary key for this model. |
|
|
| protected | $primaryKey | {@inheritdoc} |
|
|
| string | $token |
|
||
| string | $provider |
|
||
| string | $identifier |
|
||
| array | $user_attributes |
|
||
| array | $payload |
|
||
| Carbon | $created_at |
|
Methods
Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.
Register a callback to be run once after the model is saved.
Register a callback to be run once after the model is deleted.
Generate an auth token for the specified user.
Find the token with the given ID, and assert that it has not expired.
Details
in AbstractModel
at
line 67
static
boot()
{@inheritdoc}
in AbstractModel
at
line 87
__construct(array $attributes = [])
{@inheritdoc}
in AbstractModel
at
line 107
array
getDates()
Get the attributes that should be converted to dates.
in AbstractModel
at
line 125
mixed
getAttribute(string $key)
Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.
in AbstractModel
at
line 151
protected mixed
getCustomRelation(string $name)
Get a custom relation object.
in AbstractModel
at
line 167
void
afterSave(callable $callback)
Register a callback to be run once after the model is saved.
in AbstractModel
at
line 178
void
afterDelete(callable $callback)
Register a callback to be run once after the model is deleted.
in AbstractModel
at
line 186
callable[]
releaseAfterSaveCallbacks()
in AbstractModel
at
line 198
callable[]
releaseAfterDeleteCallbacks()
in AbstractModel
at
line 210
__call($method, $arguments)
{@inheritdoc}
at
line 62
static RegistrationToken
generate(string $provider, string $identifier, array $attributes, array $payload)
Generate an auth token for the specified user.
at
line 86
RegistrationToken
scopeValidOrFail(Builder<self> $query, string $token)
Find the token with the given ID, and assert that it has not expired.