diff --git a/src/Illuminate/View/ComponentAttributeBag.php b/src/Illuminate/View/ComponentAttributeBag.php index d4986bd60375..ecdca585d005 100644 --- a/src/Illuminate/View/ComponentAttributeBag.php +++ b/src/Illuminate/View/ComponentAttributeBag.php @@ -107,6 +107,17 @@ public function whereStartsWith($string) }); } + /** + * Return a bag of attributes that have keys starting with the given value / pattern. + * + * @param string $string + * @return static + */ + public function thatStartWith($string) + { + return $this->whereStartsWith($string); + } + /** * Exclude the given attribute from the attribute array. *