Skip to content

Commit 5af84e8

Browse files
authored
Update InteractsWithAPI.php
Update error in delete functions not being passed the query
1 parent eb1d6f0 commit 5af84e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/InteractsWithAPI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,12 @@ public function delete()
525525
if (! $this->hasKey()) {
526526
return;
527527
}
528-
$this->beforeDeleting();
528+
$this->beforeDeleting($query);
529529

530530
$response = $query->delete();
531531

532532
if($response){
533-
$this->afterDeleting();
533+
$this->afterDeleting($query);
534534
}
535535
return $response;
536536
}

0 commit comments

Comments
 (0)