We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c354a69 commit 2488ebaCopy full SHA for 2488eba
src/Illuminate/Support/Stringable.php
@@ -132,6 +132,18 @@ public function beforeLast($search)
132
return new static(Str::beforeLast($this->value, $search));
133
}
134
135
+ /**
136
+ * Get the portion of a string between a given values.
137
+ *
138
+ * @param string $before
139
+ * @param string $after
140
+ * @return static
141
+ */
142
+ public function between($before, $after)
143
+ {
144
+ return new static(Str::between($this->value, $before, $after));
145
+ }
146
+
147
/**
148
* Convert a value to camel case.
149
*
0 commit comments