Skip to content

Commit acbbf27

Browse files
committed
add stringable class
1 parent dc69259 commit acbbf27

File tree

2 files changed

+534
-0
lines changed

2 files changed

+534
-0
lines changed

src/Illuminate/Support/Str.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ class Str
4141
*/
4242
protected static $uuidFactory;
4343

44+
/**
45+
* Get a new stringable object from the given string.
46+
*
47+
* @param string $string
48+
* @return \Illuminate\Support\Stringable
49+
*/
50+
public static function of($string)
51+
{
52+
return new Stringable($string);
53+
}
54+
4455
/**
4556
* Return the remainder of a string after the first occurrence of a given value.
4657
*

0 commit comments

Comments
 (0)