From 571c1c2d28c9829395f8af5471dd20f778a879c7 Mon Sep 17 00:00:00 2001 From: cp6 Date: Sat, 14 May 2022 23:36:16 +1000 Subject: [PATCH] Removed server edit passed in data Removed server edit passed in data --- app/Http/Controllers/ServerController.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/Http/Controllers/ServerController.php b/app/Http/Controllers/ServerController.php index 4bcfe2e..11aacb7 100644 --- a/app/Http/Controllers/ServerController.php +++ b/app/Http/Controllers/ServerController.php @@ -195,15 +195,6 @@ class ServerController extends Controller public function edit(Server $server) { - $locations = DB::table('locations')->get(['*']); - $providers = DB::table('providers')->get(['*']); - $labels = DB::table('labels_assigned as l') - ->join('labels', 'l.label_id', '=', 'labels.id') - ->where('l.service_id', '=', $server->id) - ->get(['labels.id', 'labels.label']); - - $os = DB::table('os')->get(['*']); - $ip_addresses = json_decode(DB::table('ips as i') ->where('i.service_id', '=', $server->id) ->get(), true); @@ -213,7 +204,7 @@ class ServerController extends Controller ->where('s.id', '=', $server->id) ->get(['s.*', 'p.*']); - return view('servers.edit', compact(['server', 'locations', 'providers', 'os', 'labels', 'ip_addresses'])); + return view('servers.edit', compact(['server','ip_addresses'])); } public function update(Request $request, Server $server)