SoftDeletingTrait::getDeletedAtColumn()

string getDeletedAtColumn() Get the name of the "deleted at" column. Return Value string

SoftDeletingTrait::forceDelete()

void forceDelete() Force a hard delete on a soft deleted model. Return Value void

SoftDeletingTrait::bootSoftDeletingTrait()

static void bootSoftDeletingTrait() Boot the soft deleting trait for a model. Return Value void

SoftDeletingTrait

SoftDeletingTrait trait SoftDeletingTrait (View source) Methods static void bootSoftDeletingTrait() Boot the soft deleting trait for a model. void forceDelete() Force a hard delete on a soft deleted model. bool|null restore() Restore a soft-deleted model instance. bool trashed() Determine if the model instance has been soft-deleted. static Builder|SoftDeletingTrait withTrashed() Get a new query builder that includes soft deletes. static Builder|SoftDeletingTrait o

SoftDeletingScope::extend()

void extend(Builder $builder) Extend the query builder with the needed functions. Parameters Builder $builder Return Value void

SoftDeletingScope::apply()

void apply(Builder $builder, Model $model) Apply the scope to a given Eloquent query builder. Parameters Builder $builder Model $model Return Value void

SoftDeletingScope

SoftDeletingScope class SoftDeletingScope implements Scope (View source) Methods void apply(Builder $builder, Model $model) Apply the scope to a given Eloquent query builder. void extend(Builder $builder) Extend the query builder with the needed functions.

SoftDeletes::trashed()

bool trashed() Determine if the model instance has been soft-deleted. Return Value bool

SoftDeletes::restoring()

static void restoring(Closure|string $callback) Register a restoring model event with the dispatcher. Parameters Closure|string $callback Return Value void

SoftDeletes::restored()

static void restored(Closure|string $callback) Register a restored model event with the dispatcher. Parameters Closure|string $callback Return Value void