Search

Showing 7 of 1,216 result(s)

/blog/2017/11/27/laravel-55-string-helper-function-camel_case

Camel casing is similar to studly case such that each word starts with a capitalized letter, with the difference being the first character is lower cased. Like the studly method, the camel method will not affect the casing of the rest of the word.

/blog/2017/11/30/laravel-55-string-helper-method-contains

The contains helper method will check if any of the $needles are in the given $haystack . If any of the given $needles are found in the $haystack , the method will return true , otherwise it returns false . $needles can be any value that can be...

/blog/2017/11/30/laravel-55-string-helper-method-finish

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 string of characters, and does not...

/blog/2017/11/30/laravel-55-string-helper-method-kebab

The snake helper method replaces all uppercase letters within the string with the lower cased variant prefixed with the - character. The only exception to this rule is that if the first character of the string is capitalized, it will be replaced...

/blog/2017/11/30/laravel-55-string-helper-method-snake

The snake helper method replaces all uppercase letters within the string with the lower cased variant prefixed with the given $delimiter . The only exception to this rule is that if the first character of the string is capitalized, it will be...

/blog/2017/11/30/laravel-55-string-helper-method-title

This method will convert the given $value to look like a traditional print title. This method essentially will transform the entire $value to its lower cased equivalent and then uppercase the first character of each word it finds. This method may...

/blog/2017/12/06/laravel-5-string-helpers-generating-random-strings

The random helper method generates a random string of the specified $length . This method internally uses the OpenSSL function openssl_random_pseudo_bytes , and therefore requires the OpenSSL extension to be installed and configured .