public static function route($string) {
        return static::cache(array(__METHOD__, $string), function() use ($string) {
            return mb_strtolower(Inflector::hyphenate(str_replace('_', '-', preg_replace('/[^-_a-z0-9\s\.]+/i', '', $string))));
        });
    }
public static function route($string) {
        return static::cache(array(__METHOD__, $string), function() use ($string) {
            return mb_strtolower(Inflector::hyphenate(str_replace('_', '-', preg_replace('/[^-_a-z0-9\s\.]+/i', '', $string))));
        });
    }
public static function route ( $ string ) { return static :: cache ( array ( __METHOD__ , $ string ) , function ( ) use ( $ string ) { return mb_strtolower ( Inflector :: hyphenate ( str_replace ( '_' , '-' , preg_replace ( '/[^-_a-z0-9\s\.]+/i' , '' , $ string ) ) ) ) ; } ) ; }
Inflect a word to a routeable format. All non-alphanumeric characters will be removed, and any spaces or underscores will be changed to dashes.

@param string $string
@return string
Inflect a word to a routeable format . All non - alphanumeric characters will be removed and any spaces or underscores will be changed to dashes .