original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Register widget.
docstring_tokens: Register widget .