mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Some Poller page cleanups (#11287)
* Some Poller page cleanups Some queries loaded all devices into memory and the counted them, we should have sql count them if we only need a count. Models should be singular Use named routes for url generation Try to keep presentation and data collection separated in blade and controller. * Update PollerController.php * Fix style * Fix new PollerGroup references
This commit is contained in:
@@ -2,13 +2,12 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Device;
|
||||
use App\Models\PollerGroups;
|
||||
use App\Models\PollerGroup;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class PollerGroupController extends Controller
|
||||
{
|
||||
public function destroy(Request $request, PollerGroups $pollergroup)
|
||||
public function destroy(Request $request, PollerGroup $pollergroup)
|
||||
{
|
||||
if ($request->user()->isAdmin()) {
|
||||
$pollergroup->delete();
|
||||
|
Reference in New Issue
Block a user