src/Sluggable/SluggableTrait.php
protected function setSlug($slug)
    {
        $config  = $this->getSluggableConfig();
        $save_to = $config['save_to'];

        if ($this->storeSlugLocally()) {
            $this->setAttribute($save_to, $slug);
            return;
        }

        $this->setSlugInCmsTable($slug);
    }
protected function setSlug($slug)
    {
        $config  = $this->getSluggableConfig();
        $save_to = $config['save_to'];

        if ($this->storeSlugLocally()) {
            $this->setAttribute($save_to, $slug);
            return;
        }

        $this->setSlugInCmsTable($slug);
    }
protected function setSlug ( $ slug ) { $ config = $ this -> getSluggableConfig ( ) ; $ save_to = $ config [ 'save_to' ] ; if ( $ this -> storeSlugLocally ( ) ) { $ this -> setAttribute ( $ save_to , $ slug ) ; return ; } $ this -> setSlugInCmsTable ( $ slug ) ; }
Set the slug manually.

@param string $slug
Set the slug manually .