Search

Showing 7 of 1,975 result(s)

/blog/2016/11/19/laravel-array-helper-function-array_pluck#content-working-with-nested-arrays-and-objects

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

/blog/2016/11/30/laravel-hashing-one-way-encryption

…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 = [])...

/blog/2016/12/07/laravel-artisan-route-command-the-routelist-command

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

/blog/2018/04/11/laravel-5-retrieving-nested-array-values-with-pluck#content-working-with-nested-arrays-or-objects

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

/blog/2018/04/22/laravel-5-collections-adding-an-element-to-the-beginning-of-a-collection-with-prepend

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

/blog/2018/04/22/laravel-5-collections-executing-a-function-on-collection-elements-and-values-with-mapspread

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

/blog/2018/04/22/laravel-5-collections-filtering-collection-elements-using-strict-comparison-operators-with-wherestrict

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