diff --git a/app/Http/Controllers/SharedController.php b/app/Http/Controllers/SharedController.php index fb8aea4..69556b4 100644 --- a/app/Http/Controllers/SharedController.php +++ b/app/Http/Controllers/SharedController.php @@ -147,18 +147,18 @@ class SharedController extends Controller ]); $pricing = new Pricing(); - $pricing->updatePricing($request->id, $request->currency, $request->price, $request->payment_term, $request->next_due_date); + $pricing->updatePricing($shared->id, $request->currency, $request->price, $request->payment_term, $request->next_due_date); - Labels::deleteLabelsAssignedTo($request->id); - Labels::insertLabelsAssigned([$request->label1, $request->label2, $request->label3, $request->label4], $request->id); - Cache::forget("labels_for_service.{$request->id}"); + Labels::deleteLabelsAssignedTo($shared->id); + Labels::insertLabelsAssigned([$request->label1, $request->label2, $request->label3, $request->label4], $shared->id); + Cache::forget("labels_for_service.{$shared->id}"); - IPs::deleteIPsAssignedTo($request->id); + IPs::deleteIPsAssignedTo($shared->id); if (isset($request->dedicated_ip)) { - IPs::insertIP($request->id, $request->dedicated_ip); + IPs::insertIP($shared->id, $request->dedicated_ip); } - Cache::forget("shared_hosting.{$request->id}"); + Cache::forget("shared_hosting.{$shared->id}"); Cache::forget('all_shared'); Home::homePageCacheForget(); diff --git a/resources/views/shared/edit.blade.php b/resources/views/shared/edit.blade.php index 28b8b87..aff253e 100644 --- a/resources/views/shared/edit.blade.php +++ b/resources/views/shared/edit.blade.php @@ -20,7 +20,6 @@
-
Type