Showing 7 of 1,975 result(s)
The proxy static method is used to add additional methods to the list of methods that should be proxied for use with higher order messaging. These proxied methods allow for a cleaner syntax when invoking methods on collections of objects. By...
In this final section, we will look at integrating our custom cache system with other software packages. To do this, we will explore my favorite method of adding syntax highlighting to a website: Torchlight. Torchlight is a service that accepts...
…fig/statamic/editions.php before continuing. Statamic Pro is required for sites that have multiple users. You can learn more about Statamic Pro on the Statamic Pricing web page. To keep things somewhat simple, I will be using two terminal windows...
keyBy($keyBy) The keyBy method is used to create a new Collection instance where the keys of the new key/value pairs are determined by a $keyBy callback function (a string value can also be supplied instead of a function). The signature of the...
The command signature feature was introduced in Laravel version 5.1. In older versions of the framework the instance methods getArguments and getOptions were used to define the input expectations for commands. Both methods were expected to return...
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 * : The...
The whereIn method is used to filter the collection based on a given $key and an array of the possible $values that the $key can have. The method also defines an optional $strict parameter, which when an argument with a truth value of true is...