X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/platform/plugins/analytics/src
home
/
gfecatvj
/
sites
/
realesbar
/
platform
/
plugins
/
analytics
/
src
/
📁
..
📄
Analytics.php
(6.02 KB)
📄
AnalyticsClient.php
(2.43 KB)
📄
AnalyticsClientFactory.php
(2.06 KB)
📁
Cache
📁
Exceptions
📁
Facades
📄
GoogleClient.php
(1.84 KB)
📁
Http
📄
Period.php
(2.05 KB)
📄
Plugin.php
(850 B)
📁
Providers
Editing: Plugin.php
<?php namespace Botble\Analytics; use Botble\PluginManagement\Abstracts\PluginOperationAbstract; use Botble\Dashboard\Models\DashboardWidget; use Botble\Dashboard\Repositories\Interfaces\DashboardWidgetInterface; use Exception; class Plugin extends PluginOperationAbstract { /** * @throws Exception */ public static function remove() { $widgets = app(DashboardWidgetInterface::class) ->getModel() ->whereIn('name', [ 'widget_analytics_general', 'widget_analytics_page', 'widget_analytics_browser', 'widget_analytics_referrer', ]) ->get(); foreach ($widgets as $widget) { /** * @var DashboardWidget $widget */ $widget->delete(); } } }
Upload File
Create Folder