Showing 7 of 1,975 result(s)
The $key supports dot notation, which implies that we can search for keys at arbitrary depths when constructing the final array. Let's add a new Job class, which will just be a very simple representation of a job: Now we will modify our Person...
…ontracts\Hashing\Hasher interface, which can be implemented to create new hashing providers that Laravel can use. Any type that implements the Hasher interface must be able to generate a hash (by implementing the make($value, array $options = [])...
The route:list command can be used to show a list of all the registered routes for the application. This command will display the domain, method, URI, name, action and middleware for the routes it includes in the generated table. The following...
The $key supports dot notation, which implies that we can search for keys at arbitrary depths when constructing the final array. Let's add a new Job class, which will just be a very simple representation of a job: Now we will modify our Person...
The prepend method will add a a given $value to the beginning of the collection. You can also supply an optional $key that will be used as the key for the new $value when adding an item to the beginning of an associative array. The prepend method...
The mapSpread method is used to execute a callback on a collection. If the collection contains nested collections, or Traversable objects, the mapSpread will supply the elements of the nested collections as the arguments to the callback function....
The whereStrict method is similar to the where method, but it will always use strict comparisons when determining the results to return.The $sampleCollection collection instance will be used in the following examples: If you noticed, the first...