public function slug($str)
    {
        if (is_array($str)) {
            $str = implode(' ', $str);
        }

        return $this->slugify->slugify($str);
    }
public function slug($str)
    {
        if (is_array($str)) {
            $str = implode(' ', $str);
        }

        return $this->slugify->slugify($str);
    }
public function slug ( $ str ) { if ( is_array ( $ str ) ) { $ str = implode ( ' ' , $ str ) ; } return $ this -> slugify -> slugify ( $ str ) ; }
Return the 'sluggified' version of a string.

@param string $str input value

@return string Slug safe version of the string
Return the sluggified version of a string .