Showing 7 of 1,216 result(s)
The upper method is the opposite of the lower method and it takes a given value and returns the upper case variant. This method is useful when doing string comparisons. The signature for the upper helper method is: upper($value)
The words helper method is similar to the limit function, but instead of limiting the number of characters returned, it limits the number of words returned. The signature for the words helper function is: words($value, $words = 100, $end = '...')
The trans helper function is used to return the translation for the given key. It defines a $key parameter which corresponds to an array key within the group file. It also accepts an array of replacements (which are passed through the $parameters...
The trans_choice helper function is used to pluralize a given $id , translating it for the given $locale . The choice method accepts the $number of some collection of objects that it should use when making pluralization decisions. Like the trans...
The add helper method adds the given $key and $value to an $array if the $key doesn't already exist within the given $array . The signature for the add helper method is: add($array, $key, $value) Consider the following code snippet: the end result...
The $build helper method will create a new array with the original array's key/value pairs after they have been run through the $callback function. The $callback function should return an array with the new key and value. The signature for the...
The collapse helper method accepts an array as its only parameter. The given $array can be a single array, or a nested array. The method will then return a new array with the contents of all the nested arrays. Arrays that are collapsed can contain...
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.