SoftDeletingTrait (Database\Eloquent)

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.