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

static 
boot()

{@inheritdoc}

__construct(array $attributes = [])

{@inheritdoc}

array
getDates()

Get the attributes that should be converted to dates.

mixed
getAttribute(string $key)

Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.

mixed
getCustomRelation(string $name)

Get a custom relation object.

void
afterSave(callable $callback)

Register a callback to be run once after the model is saved.

void
afterDelete(callable $callback)

Register a callback to be run once after the model is deleted.

callable[]
releaseAfterSaveCallbacks()

No description

callable[]
releaseAfterDeleteCallbacks()

No description

__call($method, $arguments)

{@inheritdoc}

generate(string $provider, string $identifier, array $attributes, array $payload)

Generate an auth token for the specified user.

RegistrationToken
scopeValidOrFail(Builder $query, string $token)

Find the token with the given ID, and assert that it has not expired.

Details

static boot()

{@inheritdoc}

__construct(array $attributes = [])

{@inheritdoc}

Parameters

array $attributes

array getDates()

Get the attributes that should be converted to dates.

Return Value

array

mixed getAttribute(string $key)

Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.

Parameters

string $key

Return Value

mixed

protected mixed getCustomRelation(string $name)

Get a custom relation object.

Parameters

string $name

Return Value

mixed

void afterSave(callable $callback)

Register a callback to be run once after the model is saved.

Parameters

callable $callback

Return Value

void

void afterDelete(callable $callback)

Register a callback to be run once after the model is deleted.

Parameters

callable $callback

Return Value

void

callable[] releaseAfterSaveCallbacks()

Return Value

callable[]

callable[] releaseAfterDeleteCallbacks()

Return Value

callable[]

__call($method, $arguments)

{@inheritdoc}

Parameters

$method
$arguments

static RegistrationToken generate(string $provider, string $identifier, array $attributes, array $payload)

Generate an auth token for the specified user.

Parameters

string $provider
string $identifier
array $attributes
array $payload

Return Value

RegistrationToken

RegistrationToken scopeValidOrFail(Builder $query, string $token)

Find the token with the given ID, and assert that it has not expired.

Parameters

Builder $query
string $token

Return Value

RegistrationToken

Exceptions

InvalidConfirmationTokenException