class UnsubscribeToken extends AbstractModel
Constants
TOKEN_LENGTH |
|
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 | $customCasts | from AbstractModel |
|
|
static | $defaults | from AbstractModel |
|
|
protected | $tableAlias | <p>An alias for the table name, used in queries.</p> | from AbstractModel |
|
protected | $table |
|
||
protected | $casts |
|
||
protected | $fillable |
|
||
int | $id |
|
||
int | $user_id |
|
||
string | $email_type |
|
||
string | $token |
|
||
Carbon | $unsubscribed_at |
|
||
Carbon | $created_at |
|
||
Carbon | $updated_at |
|
||
User|null | $user |
|
Methods
getAttribute($key)
<p>Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.</p>
from AbstractModel
void
afterSave(callable $callback)
<p>Register a callback to be run once after the model is saved.</p>
from AbstractModel
void
afterDelete(callable $callback)
<p>Register a callback to be run once after the model is deleted.</p>
from AbstractModel
Details
in AbstractModel
at
line 71
static
boot()
in AbstractModel
at
line 88
__construct(array $attributes = [])
in AbstractModel
at
line 103
array
getCasts()
in AbstractModel
at
line 118
getAttribute($key)
<p>Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.</p>
in AbstractModel
at
line 143
protected mixed
getCustomRelation(string $name)
<p>Get a custom relation object.</p>
in AbstractModel
at
line 158
void
afterSave(callable $callback)
<p>Register a callback to be run once after the model is saved.</p>
in AbstractModel
at
line 166
void
afterDelete(callable $callback)
<p>Register a callback to be run once after the model is deleted.</p>