Showing 10 of 1,278 results.

Laravel Collection Public API: transform

transform(callable $callback) The transform is identical to the map method, but instead of returning a new Collection instance, the transform method will modify the original collection instance. The transform method will return a reference to the...

Laravel 5 String Helpers: Pluralization and Strings

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 method will apply general rules to...

Laravel String Helper Function: ends_with

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 the $haystack ends with any of the...

Laravel Classes That Support Macros

The following table will list every framework class that implements the __call method directly. The table will also indicate if the class supports macros even though it implements __call . Please note that the following table does not take into...