Laravel

Laravel String Helper Function: equals

Laravel The equals method will determine if two strings are the same. The equals method implements a constant-time algorithm, meaning that the time it takes the method to complete does not necessarily increase as the...

Laravel String Helper Function: finish

Laravel The finish helper method will make sure that a given $value always ends with exactly one occurrence of the $cap. This helper method is incredibly useful when construction URIs or file paths. The $cap can be any...

Laravel String Helper Function: is

Laravel The is helper method will indicate if the given $value matches the given $pattern. If the $value is the $pattern or if the $value matches the $pattern, the method will return true, otherwise it returns...

Laravel String Helper Function: length

Laravel The length helper method simply returns the length of the given $value, using PHP's internal character encoding. The signature for the length helper method is: length($value) use Illuminate\Support\Str; //...

Laravel String Helper Function: limit

Laravel The limit method will make sure that the $value is never longer than the given limit. If it is, the length is reduced and the specified end is added as a suffix. This method is useful when displaying output...