SoftDeletes
trait SoftDeletes
Properties
protected bool | $forceDeleting | Indicates if the model is currently force deleting. |
Methods
No description
No description
No description
No description
No description
Initialize the soft deleting trait for an instance.
Force a hard delete on a soft deleted model.
Perform the actual delete query on this model instance.
Perform the actual delete query on this model instance.
Restore a soft-deleted model instance.
Determine if the model instance has been soft-deleted.
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.
Details
at line 22
static
bootSoftDeletes()
at line 29
static protected
withTrashed($withTrashed = true)
at line 35
static protected
onlyTrashed()
at line 41
static protected
withoutTrashed()
at line 47
static protected
makeQueryBuilder($appends = [])
at line 102
void
initializeSoftDeletes()
Initialize the soft deleting trait for an instance.
at line 116
bool|null
forceDelete()
Force a hard delete on a soft deleted model.
at line 136
protected mixed
performDeleteOnModel()
Perform the actual delete query on this model instance.
at line 154
protected void
runSoftDelete()
Perform the actual delete query on this model instance.
at line 167
bool|null
restore()
Restore a soft-deleted model instance.
at line 201
bool
trashed()
Determine if the model instance has been soft-deleted.
at line 213
static void
restoring(Closure|string $callback)
Register a "restoring" model event callback with the dispatcher.
at line 224
static void
restored(Closure|string $callback)
Register a "restored" model event callback with the dispatcher.
at line 235
static void
forceDeleted(Closure|string $callback)
Register a "forceDeleted" model event callback with the dispatcher.
at line 245
bool
isForceDeleting()
Determine if the model is currently force deleting.
at line 256
string
getDeletedAtColumn()
Get the name of the "deleted at" column.