Files
librenms-librenms/app/Http/Controllers/VlansController.php
Tony Murray d2fb66d3d5 Added global VLAN ports page (#16415)
* Global VLAN ports page

* Show a list of devices too

* Fix a little theme color issues

* oops

* Just put css in the theme

* Apply fixes from StyleCI

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
Co-authored-by: Neil Lathwood <gh+n@laf.io>
2024-09-25 16:14:13 +01:00

20 lines
402 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Vlan;
use Illuminate\Contracts\View\View;
class VlansController extends Controller
{
public function index(): View
{
return view('vlans.index', [
'vlanIds' => Vlan::distinct()
->where('vlan_vlan', '>', 0)
->orderBy('vlan_vlan')
->pluck('vlan_vlan'),
]);
}
}