Showing 7 of 2,041 result(s)
In this article we will create an implementation of Illuminate\Contracts\Hashing\Hasher using PHP's crypt function and the CRYPT_SHA512 hashing function. Like in the previous sections, we will examine each method before looking at the full...
The reject method can also be used with higher order messaging, which allows us to invoke collection methods and access properties on objects using PHP's property accessors syntax. In the following example, we will create a simple Product class...
The documentation search provider makes many additional fields available for use when building the search results template. The following should be added to your fields configuration when using the docs: search provider: search_title, : The title...
We can access array data directly by its index in many different ways. The first and most recognizable is by using the square bracket syntax. We will use the sample data in Example 1.20 for our discussions: Example 1.20 If we already know the...
The avg method is a useful method for calculating the average of all items in the collection. The avg method defines an optional $key parameter, which can be used to specify what property of the collection should be averaged. If no key is...
This was a tough question for me to answer at first: if I rebuilt my site exactly as it was, I would be able to complete the project much faster, but I would ultimately be unhappy with the end result. On the other hand, if I rebuilt the site...
You may have noticed that there are many different sizes of "post images" on this site. One of the first versions of the site that I built used an image with the same dimensions for each place a blog post might appear. For example, on the home...