Removed server edit passed in data

Removed server edit passed in data
This commit is contained in:
cp6 2022-05-14 23:36:16 +10:00
parent 5ed5dc91a9
commit 571c1c2d28

View File

@ -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)