src/Rocketeer/Traits/SluggableTrait.php
public function getSlug()
    {
        $name = $this->getName();
        if (!isset($this->slugs[$name])) {
            $slug = Str::snake($name, '-');
            $this->slugs[$name] = Str::slug($slug);
        }

        return $this->slugs[$name];
    }
public function getSlug()
    {
        $name = $this->getName();
        if (!isset($this->slugs[$name])) {
            $slug = Str::snake($name, '-');
            $this->slugs[$name] = Str::slug($slug);
        }

        return $this->slugs[$name];
    }
public function getSlug ( ) { $ name = $ this -> getName ( ) ; if ( ! isset ( $ this -> slugs [ $ name ] ) ) { $ slug = Str :: snake ( $ name , '-' ) ; $ this -> slugs [ $ name ] = Str :: slug ( $ slug ) ; } return $ this -> slugs [ $ name ] ; }
Get the basic name of the entity.

@return string
Get the basic name of the entity .