Laravel

Laravel String Helper Function: singular

Laravel The singular helper method is the logical opposite to the plural method: it will attempt to take a given $value and return the singular form of that word. The internal mechanisms are similar to the plural...

Laravel String Helper Function: slug

Laravel The slug helper method will format the given $title to resemble a URI slug. It does this through a series of steps: Convert the $title to ASCII formatting (using the ascii function); Converts whitespace,...

Laravel String Helper Function: snake

Laravel 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...

Laravel String Helper Function: starts_with

Laravel startsWith does the opposite of ends_with, and has the same rules of use. Instead of checking if a given $haystack ends with any of the supplied $needles, startsWith checks if a given $haystack starts with any...

Laravel String Helper Function: str_plural

Laravel The plural helper method will attempt to return a plural version of the given $value. It does this through a series of specialized internal functions, that will not be covered in great detail here. This helper...