Showing 10 of 2,055 results.

Laravel Collection Public API: flatMap

flatMap(callable $callback) The flatMap method is used in the same way as the map (discussed in the Laravel Collection Public API: map article) method but will collapse the resulting collection. The following two code examples are equivalent: 1...

Installation and Overview

…rendering a template based on an entry's blueprint and collection , with support for a fallback default template. Example use-cases: Selecting templates dynamically to generate social media images from HTML,, Generating HTML documents on-the-fly,...

Methods | Procedure vs. Function vs. Method vs. ?

Now we are on methods. And what an a mess we are about to get in. The term method falls out of object-oriented programming, of which we won't go into depth here. For now, an object is a collection of things that are related, or a program within a...