From 58a348f973c231b9e68cb5f925cd1b1748222efb Mon Sep 17 00:00:00 2001 From: Jairo Correa Date: Fri, 22 Apr 2016 18:23:13 -0300 Subject: [PATCH] Fix SoftDeletes forceDelete return --- src/Illuminate/Database/Eloquent/SoftDeletes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/SoftDeletes.php b/src/Illuminate/Database/Eloquent/SoftDeletes.php index 4806a840632b..56c52a20093d 100644 --- a/src/Illuminate/Database/Eloquent/SoftDeletes.php +++ b/src/Illuminate/Database/Eloquent/SoftDeletes.php @@ -24,15 +24,17 @@ public static function bootSoftDeletes() /** * Force a hard delete on a soft deleted model. * - * @return void + * @return bool|void */ public function forceDelete() { $this->forceDeleting = true; - $this->delete(); + $deleted = $this->delete(); $this->forceDeleting = false; + + return $deleted; } /**