From eff3f8ba8c36488b1d1d30aae0eaae72533815b2 Mon Sep 17 00:00:00 2001 From: Raj Kumar Date: Wed, 13 Mar 2019 12:20:10 +0530 Subject: [PATCH] Fix: fix destroying event callback function --- src/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiController.php b/src/ApiController.php index 358472e..184c607 100644 --- a/src/ApiController.php +++ b/src/ApiController.php @@ -274,7 +274,7 @@ public function destroy(...$args) } if(method_exists($this, 'destroying')) { - $object = call_user_func([$this, 'destroyed'], $object); + $object = call_user_func([$this, 'destroying'], $object); } $object->delete();