diff --git a/src/Illuminate/Database/Eloquent/SoftDeletes.php b/src/Illuminate/Database/Eloquent/SoftDeletes.php index b946c8f436be..d0aac3a9a09d 100644 --- a/src/Illuminate/Database/Eloquent/SoftDeletes.php +++ b/src/Illuminate/Database/Eloquent/SoftDeletes.php @@ -128,6 +128,16 @@ public function restore() return $result; } + /** + * Restore a soft-deleted model instance without raising any events. + * + * @return bool|null + */ + public function restoreQuietly() + { + return static::withoutEvents(fn () => $this->restore()); + } + /** * Determine if the model instance has been soft-deleted. *