src/Post/CommentPost.php
public function revise($content, User $actor)
    {
        if ($this->content !== $content) {
            $this->content = $content;

            $this->edited_at = Carbon::now();
            $this->edited_user_id = $actor->id;

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

        return $this;
    }
public function revise($content, User $actor)
    {
        if ($this->content !== $content) {
            $this->content = $content;

            $this->edited_at = Carbon::now();
            $this->edited_user_id = $actor->id;

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

        return $this;
    }
public function revise ( $ content , User $ actor ) { if ( $ this -> content !== $ content ) { $ this -> content = $ content ; $ this -> edited_at = Carbon :: now ( ) ; $ this -> edited_user_id = $ actor -> id ; $ this -> raise ( new Revised ( $ this ) ) ; } return $ this ; }
Revise the post's content.

@param string $content
@param User $actor
@return $this
Revise the post s content .