src/Whoops/Util/TemplateHelper.php
public function slug($original)
    {
        $slug = str_replace(" ", "-", $original);
        $slug = preg_replace('/[^\w\d\-\_]/i', '', $slug);
        return strtolower($slug);
    }
public function slug($original)
    {
        $slug = str_replace(" ", "-", $original);
        $slug = preg_replace('/[^\w\d\-\_]/i', '', $slug);
        return strtolower($slug);
    }
public function slug ( $ original ) { $ slug = str_replace ( " " , "-" , $ original ) ; $ slug = preg_replace ( '/[^\w\d\-\_]/i' , '' , $ slug ) ; return strtolower ( $ slug ) ; }
Convert a string to a slug version of itself

@param  string $original
@return string
Convert a string to a slug version of itself