From 923eb2b5d5eed2f6e2d1cfe2222cd356947a9d9b Mon Sep 17 00:00:00 2001 From: TomBurch Date: Mon, 9 Aug 2021 18:18:21 +0100 Subject: [PATCH] Update OperationController.php --- app/Http/Controllers/Operations/OperationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Operations/OperationController.php b/app/Http/Controllers/Operations/OperationController.php index 07d9c450..35788864 100644 --- a/app/Http/Controllers/Operations/OperationController.php +++ b/app/Http/Controllers/Operations/OperationController.php @@ -62,6 +62,6 @@ public function store(Request $request, Operation $operation) */ public function destroy(Request $request, Operation $operation) { - Operation::destroy($operation->id); + $operation->delete(); } }