Showing 7 of 1,697 result(s)
…get away with doing nothing with the headers on most sites, it will help put that final bit of polish on our implementation and provide us with a way to exclude some headers from the cached response. The first step will be to adjust our response...
…. Allows for a twelve character salt, starting with the string $1$ . Because of the required characters in the salt, we are left with only eight usable characters for our salt. Insecure CRYPT_BLOWFISH Blowfish hashing. Salt begins with $2y$ , a...
…to invoke the every method: After the above code has executed, the $allAlphabetic variable would contain the value false . In the following example, we will check to see if all users in the collection are verified or not (we will also use strict...
…rride this function and make it generate pretty URLs. This is the code for the getUrl($page) function: We are going to need to make a few changes to it. Let's start listing the changes we will need to make: For starters, we will have to change...
…Statamic allows tag authors to provide different names for their tags through the use of the alias feature. We will take advantage of this feature to give our tag a simpler name of {{ 500 }} . In doing so, our tag will also feel more natural when...
sum($callback = null) The sum is a simple method that returns the sum of all items in a collection. It also defines a $callback parameter which can be used to tell the sum method which values of the collection should be added together. If no items...
set(&$array, $key, $value) The set helper method is the logical opposite of the forget (discussed in the Laravel Array Helper Function: array_forget article) method. its purpose is to set values within an array. The set method also uses dot...