Laravel

Laravel String Helper Function: studly_case

Laravel Studly caps is a way of formatting text with capital letters, according to some pattern. Laravel's pattern is to remove the following word separators and capitalize the first letter of each word it finds (while...

Laravel Security Helper Function: e for HTML Entities

Laravel The e function is a simple wrapper of PHP's htmlentities function. The e function utilizes the UTF-8 character encoding. The e function will sanitize user input when displaying it to the browser. The signature...

Laravel String Helper Function: camel

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

Laravel String Helper Function: contains

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

Laravel String Helper Function: ends_with

Laravel The endsWith is used to check if a given $haystack ends with any of the supplied $needles. The $haystack is any value that can be cast into a string, and $needles is any value that can be cast into an array. If...