class RegistrationToken extends AbstractModel

Properties

bool $timestamps <p>Indicates if the model should be timestamped. Turn off by default.</p> from AbstractModel
protected callable[] $afterSaveCallbacks <p>An array of callbacks to be run once after the model is saved.</p> from AbstractModel
protected callable[] $afterDeleteCallbacks <p>An array of callbacks to be run once after the model is deleted.</p> from AbstractModel
static $customRelations from AbstractModel
static $dateAttributes from AbstractModel
static $defaults from AbstractModel
protected array $dates <p>The attributes that should be mutated to dates.</p>
protected $casts
bool $incrementing <p>Use a custom primary key for this model.</p>
protected $primaryKey <p>{@inheritdoc}</p>
string $token
string $provider
string $identifier
array $user_attributes
array $payload
Carbon $created_at

Methods

static 
boot()

<p>{@inheritdoc}</p>

__construct(array $attributes = [])

<p>{@inheritdoc}</p>

array
getDates()

<p>Get the attributes that should be converted to dates.</p>

mixed
getAttribute(string $key)

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

mixed
getCustomRelation(string $name)

<p>Get a custom relation object.</p>

void
afterSave(callable $callback)

<p>Register a callback to be run once after the model is saved.</p>

void
afterDelete(callable $callback)

<p>Register a callback to be run once after the model is deleted.</p>

callable[]
releaseAfterSaveCallbacks()

No description

callable[]
releaseAfterDeleteCallbacks()

No description

__call($method, $arguments)

<p>{@inheritdoc}</p>

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

<p>Generate an auth token for the specified user.</p>

scopeValidOrFail(Builder $query, string $token)

<p>Find the token with the given ID, and assert that it has not expired.</p>

Details

static boot()

<p>{@inheritdoc}</p>

__construct(array $attributes = [])

<p>{@inheritdoc}</p>

Parameters

array $attributes

array getDates()

<p>Get the attributes that should be converted to dates.</p>

Return Value

array

mixed getAttribute(string $key)

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

Parameters

string $key

Return Value

mixed

protected mixed getCustomRelation(string $name)

<p>Get a custom relation object.</p>

Parameters

string $name

Return Value

mixed

void afterSave(callable $callback)

<p>Register a callback to be run once after the model is saved.</p>

Parameters

callable $callback

Return Value

void

void afterDelete(callable $callback)

<p>Register a callback to be run once after the model is deleted.</p>

Parameters

callable $callback

Return Value

void

callable[] releaseAfterSaveCallbacks()

Return Value

callable[]

callable[] releaseAfterDeleteCallbacks()

Return Value

callable[]

__call($method, $arguments)

<p>{@inheritdoc}</p>

Parameters

$method
$arguments

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

<p>Generate an auth token for the specified user.</p>

Parameters

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

Return Value

RegistrationToken

RegistrationToken scopeValidOrFail(Builder $query, string $token)

<p>Find the token with the given ID, and assert that it has not expired.</p>

Parameters

Builder $query
string $token

Return Value

RegistrationToken

Exceptions

InvalidConfirmationTokenException