opened up bundles to live anywhere and respond to any URI.'
This commit is contained in:
@@ -255,6 +255,17 @@ class Str {
|
||||
return str_replace(' ', '_', static::title(str_replace($search, ' ', $value)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the "URI" style segments in a given string.
|
||||
*
|
||||
* @param string $value
|
||||
* @return array
|
||||
*/
|
||||
public static function segments($value)
|
||||
{
|
||||
return array_diff(explode('/', trim($value, '/')), array(''));
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a random alpha or alpha-numeric string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user