Showing 7 of 1,697 result(s)
…language strings for the various filters that appear in the Control Panel. general.php Provides language strings for general items and branding. guards.php Provides translation strings for various spam guards. Displayed in the configuration...
first($array, callable $callback = null, $default = null) Let's begin discussing the first helper method be examining the $callback . The $callback is a function that accepts a $key and a $value as its parameters. The following code sample is an...
reduce(callable $callback, $initial = null) The reduce method is to reduce a collection into only one item. It does this by iterating over the collection and applying the $callback function on each item. The $callback function should define two...
The following is a trivial example of the partition where we create two partitions, one containing the vowels of a sentence and the other containing the consonants of the sentence. We will then take the results of the partition method and pass...
…just yet. For example, we are creating variables using Antlers front-matter, which can then be referenced by prefixing our variables with view: . Additionally, we are invoking Statamic's foreach tag, and supplying an interesting value for the...
Laravel Facades Part One': 'An Introduction to Facades, Laravel Facades Part Two': 'Using Facades, Laravel Facades Part Three': 'Creating Custom Facades, Laravel Facades Part Four': 'Facade Class Reference The following tables will list all the...
…cope at the time the modifier was invoked, as well as the data from the item being iterated., se_is_set_type, 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...