SoftDeletingTrait::restore()

bool|null restore() Restore a soft-deleted model instance. Return Value bool|null

SoftDeletingTrait::getDeletedAtColumn()

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

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

SoftDeletes::restored()

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

SoftDeletes::restore()

bool|null restore() Restore a soft-deleted model instance. Return Value bool|null

SoftDeletes::restoring()

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

SoftDeletes::isForceDeleting()

bool isForceDeleting() Determine if the model is currently force deleting. Return Value bool