From 5af84e875f82ec09de4f7a4989af60038f6e2806 Mon Sep 17 00:00:00 2001 From: Colin Hall Date: Wed, 2 Jun 2021 07:45:10 +0100 Subject: [PATCH] Update InteractsWithAPI.php Update error in delete functions not being passed the query --- src/Traits/InteractsWithAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Traits/InteractsWithAPI.php b/src/Traits/InteractsWithAPI.php index 3c87692..b1260be 100644 --- a/src/Traits/InteractsWithAPI.php +++ b/src/Traits/InteractsWithAPI.php @@ -525,12 +525,12 @@ public function delete() if (! $this->hasKey()) { return; } - $this->beforeDeleting(); + $this->beforeDeleting($query); $response = $query->delete(); if($response){ - $this->afterDeleting(); + $this->afterDeleting($query); } return $response; }