Showing 7 of 1,975 result(s)
…ch edge case, let's compare this Antlers template: to its formatted output: In this Antlers example, we are using some conditional logic to generate an HTML tag name dynamically. Dynamic element names pose a problem to our document transformation...
Any words, or word endings, in the following table will not be affected by the plural method. This is either because the resulting word is already plural, or because there is no inflection available. Word endings are denoted by the prefix * :...
whereInLoose($key, array $values) The whereInLoose method is similar to the whereIn (discussed in the Laravel Collection Public API: whereIn article) method in that both methods can be used to filter the collection based on a given $key and an...
…ric, and contains value,, The value is, boolean, ,, The value is a, Countable, object and contains items,, the PHP, empty, evaluates to, falseThe signature of the filled function is:The following example demonstrates the basic usage of the filled...
…use of Service Providers. The Calculator class instance was bound as a singleton because there does not need to possibly hundreds of instances of Calculator created: many consumers of the class can share a single instance (note that not all...
The get method can be used to retrieve an item from the collection based of its $key . An optional $default argument can be passed that will be returned if the supplied $key does not exists in the collection. The $default argument can be a simple...
The se_is_set_type modifier is a utility modifier that can be used to easily check if a Bard or replicator field contains a specific set at some arbitrary position. As an example, this modifier can be used to simplify template code to dynamically...