original_string: public function addData(Serializing $event)
      {
          if ($event->isSerializer(ForumSerializer::class) && $event->actor->isAdmin()) {
              $event->attributes['datitisev-dashboard.data'] = [
                  'postCount'       => Post::where('type', 'comment')->count(),
                  'discussionCount' => Discussion::count(),
                  'userCount'       => User::where('is_email_confirmed', 1)->count(),
              ];
          }
      }
code: public function addData(Serializing $event)
      {
          if ($event->isSerializer(ForumSerializer::class) && $event->actor->isAdmin()) {
              $event->attributes['datitisev-dashboard.data'] = [
                  'postCount'       => Post::where('type', 'comment')->count(),
                  'discussionCount' => Discussion::count(),
                  'userCount'       => User::where('is_email_confirmed', 1)->count(),
              ];
          }
      }
code_tokens: public function addData ( Serializing $ event ) { if ( $ event -> isSerializer ( ForumSerializer :: class ) && $ event -> actor -> isAdmin ( ) ) { $ event -> attributes [ 'datitisev-dashboard.data' ] = [ 'postCount' => Post :: where ( 'type' , 'comment' ) -> count ( ) , 'discussionCount' => Discussion :: count ( ) , 'userCount' => User :: where ( 'is_email_confirmed' , 1 ) -> count ( ) , ] ; } }
docstring: Adds settings to admin settings.
  
  @param Serializing $event
docstring_tokens: Adds settings to admin settings .