public function hasMaxParticipants()
    {
        $participants = $this->participants();
        if ($participants->count() > $this->max_participants) {
            // max number of participants reached
            return true;
        }
        return false;
    }
public function hasMaxParticipants()
    {
        $participants = $this->participants();
        if ($participants->count() > $this->max_participants) {
            // max number of participants reached
            return true;
        }
        return false;
    }
public function hasMaxParticipants ( ) { $ participants = $ this -> participants ( ) ; if ( $ participants -> count ( ) > $ this -> max_participants ) { // max number of participants reached return true ; } return false ; }
Checks if the max number of participants in a thread has been reached.

@return boolean
Checks if the max number of participants in a thread has been reached .