From ee1f93f0111ede04fe9e7ac1e06dab274bc76288 Mon Sep 17 00:00:00 2001 From: paranarimasu <33796518+paranarimasu@users.noreply.github.com> Date: Fri, 8 Jul 2022 23:27:33 -0500 Subject: [PATCH] fix(admin): disable resource polling (#413) --- app/Nova/Lenses/BaseLens.php | 21 --------------------- app/Nova/Resources/BaseResource.php | 21 --------------------- 2 files changed, 42 deletions(-) diff --git a/app/Nova/Lenses/BaseLens.php b/app/Nova/Lenses/BaseLens.php index fdcac65fb..b016ceffc 100644 --- a/app/Nova/Lenses/BaseLens.php +++ b/app/Nova/Lenses/BaseLens.php @@ -13,27 +13,6 @@ use Laravel\Nova\Lenses\Lens; */ abstract class BaseLens extends Lens { - /** - * Indicates whether the resource should automatically poll for new resources. - * - * @var bool - */ - public static $polling = true; - - /** - * The interval at which Nova should poll for new resources. - * - * @var int - */ - public static $pollingInterval = 60; - - /** - * Indicates whether to show the polling toggle button inside Nova. - * - * @var bool - */ - public static $showPollingToggle = true; - /** * Get the query builder / paginator for the lens. * diff --git a/app/Nova/Resources/BaseResource.php b/app/Nova/Resources/BaseResource.php index ee3aaa581..e917b9165 100644 --- a/app/Nova/Resources/BaseResource.php +++ b/app/Nova/Resources/BaseResource.php @@ -27,27 +27,6 @@ abstract class BaseResource extends NovaResource */ public static $scoutSearchResults = 10; - /** - * Indicates whether the resource should automatically poll for new resources. - * - * @var bool - */ - public static $polling = true; - - /** - * The interval at which Nova should poll for new resources. - * - * @var int - */ - public static $pollingInterval = 60; - - /** - * Indicates whether to show the polling toggle button inside Nova. - * - * @var bool - */ - public static $showPollingToggle = true; - /** * The number of resources to show per page via relationships. *