Skip to content

Commit

Permalink
add alias
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 26, 2020
1 parent 0abe2db commit 07ee3e8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/View/ComponentAttributeBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 07ee3e8

Please sign in to comment.