public function updateSlug($attr = 'title')
 {
     if ($attr == 'title') {
         $this->slug = Slug::fromTitle($this->title);
     } else {
         $this->slug = Slug::fromId($this->id);
     }
 }