Showing 10 of 2,055 results.

Laravel Collection Public API: each

each(callable $callback) The each method accepts a $callback which will be called on each item in the collection. If the $callback returns false , the each method will break from its iterator and return a reference back to the original Collection...

Managing Imported Fieldset Handles with Antlers Runtime

…}} </ dd > 5 {{ /faq }} 6 </ dl > and simply include the following in other templates when we wanted to reuse our Frequently Asked Questions template: 1 {{ partial : components / faq }}The previous example works great when field names do not...

A Beginners Guide to Antlers Arrays and Loops

Arrays are the most versatile datatype when working with Antlers templates. Throughout this article, we will look at various ways to iterate arrays, define and manipulate them, and the default helper variables that exist to help you develop your...

Resolving Variables

Site Essentials for Statamic attempts to locate data from various locations within your template's context, depending on the precise tag being built. Almost all builder methods can have their values customized. The simplest way to customize the...