src/Discussion/UserState.php
public function read($number)
    {
        if ($number > $this->last_read_post_number) {
            $this->last_read_post_number = $number;
            $this->last_read_at = Carbon::now();

            $this->raise(new UserRead($this));
        }

        return $this;
    }
public function read($number)
    {
        if ($number > $this->last_read_post_number) {
            $this->last_read_post_number = $number;
            $this->last_read_at = Carbon::now();

            $this->raise(new UserRead($this));
        }

        return $this;
    }
public function read ( $ number ) { if ( $ number > $ this -> last_read_post_number ) { $ this -> last_read_post_number = $ number ; $ this -> last_read_at = Carbon :: now ( ) ; $ this -> raise ( new UserRead ( $ this ) ) ; } return $ this ; }
Mark the discussion as being read up to a certain point. Raises the
DiscussionWasRead event.

@param int $number
@return $this
Mark the discussion as being read up to a certain point . Raises the DiscussionWasRead event .