Files
librenms-librenms/app/Http/Controllers/VlansController.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
402 B
PHP
Raw Normal View History

<?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'),
]);
}
}