SoftDeletes
trait SoftDeletes
Properties
| protected bool | $forceDeleting | Indicates if the model is currently force deleting. |
Methods
Boot the soft deleting trait for a model.
Initialize the soft deleting trait for an instance.
Force a hard delete on a soft deleted model.
Force a hard delete on a soft deleted model without raising any events.
Perform the actual delete query on this model instance.
Perform the actual delete query on this model instance.
Restore a soft-deleted model instance.
Restore a soft-deleted model instance without raising any events.
Determine if the model instance has been soft-deleted.
Register a "softDeleted" model event callback with the dispatcher.
Register a "restoring" model event callback with the dispatcher.
Register a "restored" model event callback with the dispatcher.
Register a "forceDeleting" model event callback with the dispatcher.
Register a "forceDeleted" model event callback with the dispatcher.
Determine if the model is currently force deleting.
Get the name of the "deleted at" column.
Get the fully-qualified "deleted at" column.
\Hypervel\Database\Eloquent\Builder
No description
No description
Details
at line 27
static void
bootSoftDeletes()
Boot the soft deleting trait for a model.
at line 35
void
initializeSoftDeletes()
Initialize the soft deleting trait for an instance.
at line 47
int|bool|null
forceDelete()
Force a hard delete on a soft deleted model.
at line 67
int|bool|null
forceDeleteQuietly()
Force a hard delete on a soft deleted model without raising any events.
at line 75
static int
forceDestroy(Collection|Collection|array|int|string $ids)
Destroy the models for the given IDs.
at line 111
protected void
performDeleteOnModel()
Perform the actual delete query on this model instance.
at line 127
protected void
runSoftDelete()
Perform the actual delete query on this model instance.
at line 153
bool
restore()
Restore a soft-deleted model instance.
at line 181
bool
restoreQuietly()
Restore a soft-deleted model instance without raising any events.
at line 191
bool
trashed()
Determine if the model instance has been soft-deleted.
at line 208
static void
softDeleted(QueuedClosure|callable|string $callback)
Register a "softDeleted" model event callback with the dispatcher.
at line 216
static void
restoring(QueuedClosure|callable|string $callback)
Register a "restoring" model event callback with the dispatcher.
at line 224
static void
restored(QueuedClosure|callable|string $callback)
Register a "restored" model event callback with the dispatcher.
at line 232
static void
forceDeleting(QueuedClosure|callable|string $callback)
Register a "forceDeleting" model event callback with the dispatcher.
at line 240
static void
forceDeleted(QueuedClosure|callable|string $callback)
Register a "forceDeleted" model event callback with the dispatcher.
at line 248
bool
isForceDeleting()
Determine if the model is currently force deleting.
at line 256
string
getDeletedAtColumn()
Get the name of the "deleted at" column.
at line 264
string
getQualifiedDeletedAtColumn()
Get the fully-qualified "deleted at" column.
at line 17
void
static()
\Hypervel\Database\Eloquent\Builder
at line 17
static static
restoreOrCreate(array<string $, mixed> $attributes = '[]', mixed> $values = '[]')
No description
at line 17
static static
createOrRestore(array<string $, mixed> $attributes = '[]', mixed> $values = '[]')
No description