class UnsubscribeToken extends AbstractModel
Constants
| TOKEN_LENGTH |
|
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 array | $customCasts | from AbstractModel |
|
|
| static array | $defaults | from AbstractModel |
|
|
| protected string|null | $tableAlias | An alias for the table name, used in queries. | from AbstractModel |
|
| string[]|null | $uniqueKeys | If a model has unique keys, they should be defined here. | 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
void
afterSave(callable $callback)
Register a callback to be run once after the model is saved.
from AbstractModel
void
afterDelete(callable $callback)
Register a callback to be run once after the model is deleted.
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 117
void
afterSave(callable $callback)
Register a callback to be run once after the model is saved.
in AbstractModel
at
line 125
void
afterDelete(callable $callback)
Register a callback to be run once after the model is deleted.