src/Discussion/Discussion.php
public function hide(User $actor = null)
    {
        if (! $this->hidden_at) {
            $this->hidden_at = Carbon::now();
            $this->hidden_user_id = $actor ? $actor->id : null;

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

        return $this;
    }
public function hide(User $actor = null)
    {
        if (! $this->hidden_at) {
            $this->hidden_at = Carbon::now();
            $this->hidden_user_id = $actor ? $actor->id : null;

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

        return $this;
    }
public function hide ( User $ actor = null ) { if ( ! $ this -> hidden_at ) { $ this -> hidden_at = Carbon :: now ( ) ; $ this -> hidden_user_id = $ actor ? $ actor -> id : null ; $ this -> raise ( new Hidden ( $ this ) ) ; } return $ this ; }
Hide the discussion.

@param User $actor
@return $this
Hide the discussion .