dep: package update
This commit is contained in:
+36
-1
@@ -342,6 +342,20 @@ class Stringable implements JsonSerializable
|
||||
return new static(Str::markdown($this->value, $options));
|
||||
}
|
||||
|
||||
/**
|
||||
* Masks a portion of a string with a repeated character.
|
||||
*
|
||||
* @param string $character
|
||||
* @param int $index
|
||||
* @param int|null $length
|
||||
* @param string $encoding
|
||||
* @return static
|
||||
*/
|
||||
public function mask($character, $index, $length = null, $encoding = 'UTF-8')
|
||||
{
|
||||
return new static(Str::mask($this->value, $character, $index, $length, $encoding));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the string matching the given pattern.
|
||||
*
|
||||
@@ -565,6 +579,17 @@ class Stringable implements JsonSerializable
|
||||
return new static(Str::start($this->value, $prefix));
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip HTML and PHP tags from the given string.
|
||||
*
|
||||
* @param string $allowedTags
|
||||
* @return static
|
||||
*/
|
||||
public function stripTags($allowedTags = null)
|
||||
{
|
||||
return new static(strip_tags($this->value, $allowedTags));
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given string to upper-case.
|
||||
*
|
||||
@@ -585,6 +610,16 @@ class Stringable implements JsonSerializable
|
||||
return new static(Str::title($this->value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given string to title case for each word.
|
||||
*
|
||||
* @return static
|
||||
*/
|
||||
public function headline()
|
||||
{
|
||||
return new static(Str::headline($this->value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the singular form of an English word.
|
||||
*
|
||||
@@ -778,7 +813,7 @@ class Stringable implements JsonSerializable
|
||||
/**
|
||||
* Dump the string and end the script.
|
||||
*
|
||||
* @return void
|
||||
* @return never
|
||||
*/
|
||||
public function dd()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user