Merge pull request #1497 from bencorlett/patch-2

Allow forward slash separators in Str::classify()
This commit is contained in:
Taylor Otwell
2013-01-05 11:54:54 -08:00

View File

@@ -296,7 +296,7 @@ class Str {
*/ */
public static function classify($value) public static function classify($value)
{ {
$search = array('_', '-', '.'); $search = array('_', '-', '.', '/');
return str_replace(' ', '_', static::title(str_replace($search, ' ', $value))); return str_replace(' ', '_', static::title(str_replace($search, ' ', $value)));
} }