protected function recomputeSlug()
    {
        $slug = $this->computeSlug();
        $this->getConnection()->table($this->getTable())
             ->where($this->getKeyName(), $this->id)
             ->update(['slug' => $slug]);

        $this->articles()->get()->each->touch();
    }
protected function recomputeSlug()
    {
        $slug = $this->computeSlug();
        $this->getConnection()->table($this->getTable())
             ->where($this->getKeyName(), $this->id)
             ->update(['slug' => $slug]);

        $this->articles()->get()->each->touch();
    }
protected function recomputeSlug ( ) { $ slug = $ this -> computeSlug ( ) ; $ this -> getConnection ( ) -> table ( $ this -> getTable ( ) ) -> where ( $ this -> getKeyName ( ) , $ this -> id ) -> update ( [ 'slug' => $ slug ] ) ; $ this -> articles ( ) -> get ( ) -> each -> touch ( ) ; }
Recompute category slug and all articles.
Recompute category slug and all articles .