Skip to content

Commit

Permalink
Merge pull request #10 from cyrillkalita/patch-1
Browse files Browse the repository at this point in the history
Update InteractsWithAPI.php
  • Loading branch information
colinhall17 authored Feb 15, 2021
2 parents ec24500 + 237d831 commit 9a0ac4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Traits/InteractsWithAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,13 @@ public function delete()
if (! $this->hasKey()) {
return;
}
$this->beforeDeleting();

$this->beforeDeleting($query);

$response = $query->delete();

if ($response) {
$this->afterDeleting();
$this->afterDeleting($query);
}

return $response;
Expand Down

0 comments on commit 9a0ac4d

Please sign in to comment.