From a3072b5fff7110bbe1cdefc1894b545ca07836fb Mon Sep 17 00:00:00 2001 From: ShoyebWritesCode Date: Tue, 20 Aug 2024 13:09:24 +0600 Subject: [PATCH] Remove Dead Code --- app/Http/Controllers/ContactsController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Http/Controllers/ContactsController.php b/app/Http/Controllers/ContactsController.php index 68f06e0f..a41185bb 100644 --- a/app/Http/Controllers/ContactsController.php +++ b/app/Http/Controllers/ContactsController.php @@ -184,10 +184,7 @@ public function addColumn() Auth::user()->account->contactCustomColumns()->create($column); - //send status 200 code - return response()->json([], 200); - - return Redirect::back()->with('success', 'Column added.')->json([], 200); + return Redirect::back()->with('success', 'Column added.'); } }