src/Discussion/Discussion.php
protected function setTitleAttribute($title)
    {
        $this->attributes['title'] = $title;
        $this->slug = Str::slug($title);
    }
protected function setTitleAttribute($title)
    {
        $this->attributes['title'] = $title;
        $this->slug = Str::slug($title);
    }
protected function setTitleAttribute ( $ title ) { $ this -> attributes [ 'title' ] = $ title ; $ this -> slug = Str :: slug ( $ title ) ; }
Set the discussion title.

This automatically creates a matching slug for the discussion.

@param string $title
Set the discussion title .