Search

Showing 7 of 1,697 result(s)

/blog/2023/09/03/creating-a-hybrid-cache-system-for-statamic-part-three

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

/blog/2016/11/30/laravel-available-hashing-methods

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

/blog/2018/04/22/laravel-5-collections-testing-all-collection-values-with-every#content-signature

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

/blog/2014/07/28/laravel-paginator-pretty-urls#content-extending-laravels-paginator

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

/blog/2020/12/29/creating-a-custom-statamic-500-server-error-page#content-testing-the-error-page

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

/blog/2016/11/30/laravel-collection-public-api-sum

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

/blog/2016/11/19/laravel-array-helper-function-array_set

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