Skip to content

Commit 07ee3e8

Browse files
committed
add alias
1 parent 0abe2db commit 07ee3e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Illuminate/View/ComponentAttributeBag.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ public function whereStartsWith($string)
107107
});
108108
}
109109

110+
/**
111+
* Return a bag of attributes that have keys starting with the given value / pattern.
112+
*
113+
* @param string $string
114+
* @return static
115+
*/
116+
public function thatStartWith($string)
117+
{
118+
return $this->whereStartsWith($string);
119+
}
120+
110121
/**
111122
* Exclude the given attribute from the attribute array.
112123
*

0 commit comments

Comments
 (0)