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;
        }
    }
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;
        }
    }
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 ; } }
Get the number of threads inside the current forum.
@return mixed
Get the number of threads inside the current forum .