class EmailBounceEvent extends AbstractModel

A historical record of a single bounce or complaint event reported by the mail provider. Unlike the flag on the user, these rows persist even after the user fixes their address, so they can be counted as true event volume.

Constants

TYPE_BOUNCE

TYPE_COMPLAINT

Properties

$timestamps
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
static protected array<class-string, array<string, string>> $castsCache Resolved casts, keyed by model class. 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
string $email
int|null $user_id
string $type
string|null $reason
Carbon $created_at
User|null $user

Methods

static 
boot()

No description

__construct(array $attributes = [])

No description

array
getCasts()

No description

static void
flushCastsCache()

Discard the resolved casts, so that newly registered ones are picked up.

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.

array
releaseAfterSaveCallbacks()

No description

array
releaseAfterDeleteCallbacks()

No description

newModelQuery()

No description

qualifyColumn($column)

No description

mixed
withTableAlias(callable $callback)

No description

newCollection(array $models = [])

No description

__sleep()

No description

user()

No description

Details

static boot()

__construct(array $attributes = [])

Parameters

array $attributes

array getCasts()

Return Value

array

static void flushCastsCache()

Discard the resolved casts, so that newly registered ones are picked up.

Return Value

void

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

array releaseAfterSaveCallbacks()

Return Value

array

array releaseAfterDeleteCallbacks()

Return Value

array

newModelQuery()

qualifyColumn($column)

Parameters

$column

mixed withTableAlias(callable $callback)

Parameters

callable $callback

Return Value

mixed

Collection newCollection(array $models = [])

Parameters

array $models

Return Value

Collection

__sleep()

BelongsTo user()

Return Value

BelongsTo