public function getThreadCount()
    {
        try {
            $result = DB::select('SELECT COUNT(*) as count FROM `forum_posts` where forum_id = ?', [$this->id]);
            return $result[0]->count;
        } catch (\Exception $e) {
            return 0;
        }
    }