protected function registerWidgets()
    {
        $widgetsRegistry = $this->app[WidgetsRegistryInterface::class];

        foreach ($this->widgets as $widget) {
            $widgetsRegistry->registerWidget($widget);
        }
    }
protected function registerWidgets()
    {
        $widgetsRegistry = $this->app[WidgetsRegistryInterface::class];

        foreach ($this->widgets as $widget) {
            $widgetsRegistry->registerWidget($widget);
        }
    }
protected function registerWidgets ( ) { $ widgetsRegistry = $ this -> app [ WidgetsRegistryInterface :: class ] ; foreach ( $ this -> widgets as $ widget ) { $ widgetsRegistry -> registerWidget ( $ widget ) ; } }
Global register widgets.
Global register widgets .