PATH:
home
/
lab2454c
/
vaultchip.com
/
platform
/
plugins
/
analytics
/
src
<?php namespace Botble\Analytics; use Botble\Dashboard\Models\DashboardWidget; use Botble\Dashboard\Repositories\Interfaces\DashboardWidgetInterface; use Botble\PluginManagement\Abstracts\PluginOperationAbstract; use Exception; class Plugin extends PluginOperationAbstract { /** * @throws Exception */ public static function remove() { $widgets = app(DashboardWidgetInterface::class) ->advancedGet([ 'condition' => [ [ 'name', 'IN', [ 'widget_analytics_general', 'widget_analytics_page', 'widget_analytics_browser', 'widget_analytics_referrer', ], ], ], ]); foreach ($widgets as $widget) { /** * @var DashboardWidget $widget */ $widget->delete(); } } }
[+]
Exceptions
[-] Plugin.php
[edit]
[-] AnalyticsClient.php
[edit]
[+]
..
[-] Analytics.php
[edit]
[-] GoogleClient.php
[edit]
[+]
Facades
[+]
Providers
[-] Period.php
[edit]
[+]
Http
[-] AnalyticsClientFactory.php
[edit]