show count of Ports in PortGroup display (#13164)

This commit is contained in:
SourceDoctor
2021-08-23 19:06:36 -05:00
committed by GitHub
co-authored by GitHub
parent d74bb37971
commit 62d440a0dc
2 changed files with 3 additions and 1 deletions
+1 -1
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(),
]);
}