show count of Ports in PortGroup display (#13164)

This commit is contained in:
SourceDoctor
2021-08-24 02:06:36 +02:00
committed by GitHub
parent d74bb37971
commit 62d440a0dc
2 changed files with 3 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ class PortGroupController extends Controller
public function index()
{
return view('port-group.index', [
'port_groups' => PortGroup::orderBy('name')->get(),
'port_groups' => PortGroup::orderBy('name')->withCount('ports')->get(),
]);
}