protected function registerWidgets()
    {
        $default_widgets = ['LaravelAdminPanel\\Widgets\\UserDimmer', 'LaravelAdminPanel\\Widgets\\PostDimmer', 'LaravelAdminPanel\\Widgets\\PageDimmer'];
        $widgets = config('admin.dashboard.widgets', $default_widgets);

        foreach ($widgets as $widget) {
            Widget::group('admin::dimmers')->addWidget($widget);
        }
    }
protected function registerWidgets()
    {
        $default_widgets = ['LaravelAdminPanel\\Widgets\\UserDimmer', 'LaravelAdminPanel\\Widgets\\PostDimmer', 'LaravelAdminPanel\\Widgets\\PageDimmer'];
        $widgets = config('admin.dashboard.widgets', $default_widgets);

        foreach ($widgets as $widget) {
            Widget::group('admin::dimmers')->addWidget($widget);
        }
    }
protected function registerWidgets ( ) { $ default_widgets = [ 'LaravelAdminPanel\\Widgets\\UserDimmer' , 'LaravelAdminPanel\\Widgets\\PostDimmer' , 'LaravelAdminPanel\\Widgets\\PageDimmer' ] ; $ widgets = config ( 'admin.dashboard.widgets' , $ default_widgets ) ; foreach ( $ widgets as $ widget ) { Widget :: group ( 'admin::dimmers' ) -> addWidget ( $ widget ) ; } }
Register widget.
Register widget .