Showing 10 of 1,085 results.

Laravel Miscellaneous Helper Function: data_set

data_set(&$target, $key, $value, $overwrite = true) The data_set helper function can be used to set the value of an item in an array or an object property using dot notation. It accepts a reference to a $target array or object; the $key (array key...

Generating Favicons

There are two primary ways to trigger favicon image generation: using the command line and programmatically, such as from listening to Statamic events. Before we can generate favicons, we need to let Site Essentials for Statamic know what image to...

Laravel Collection Public API: where

where($key, $operator, $value = null) The where method allows developers to filter a collection given a key value pair. It filters the collection's items by checking that the given $key has some value equal to the provided $value . An argument can...

where Comparison Operators | The "where" Filters

The following table lists all of the comparison operators that are supported by the where filter: Operator Description = Lose equality operator; the data types do not need to match. != Lose inequality operator; the data types do not need to match....

Laravel 5 String Helpers: ends_with global helper

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...

X/Twitter Metadata

…' => null , 17 18 ' app_name_googleplay ' => null , 19 ' app_id_googleplay ' => null , 20 ' app_url_googleplay ' => null , 21 ] , 22 ] ; For more information about each of the various options, you should consult their documentation at...

Laravel Application Helper Function: request

request($key = null, $default = null) The request helper function is a useful helper function that can be used to either retrieve an instance of Illuminate\Http\Request or retrieve an item from the user's input. To retrieve an instance of Request...

Filter Search