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(),
            ];
        }
    }
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(),
            ];
        }
    }
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 ( ) , ] ; } }
Adds settings to admin settings.

@param Serializing $event
Adds settings to admin settings .