Showing 7 of 1,975 result(s)
The where helper method is functionally similar to the pluck method, in that both take a source $array and filter it to produce a smaller array. It works by iterating over each element in the $array and executing the $callback on each key value...
The dot helper method will take a multi-dimensional array and return a new associative array where the keys are built from all the nested keys, separated with the . character.
The divide helper method will take the given $array and create two new arrays. The first array will be all of the keys from the original $array and the second array will be all of the values.
The config helper function can be used to accomplish many different tasks, depending on the types of arguments, and number of arguments supplied to the function. For example, the config function can be used to resolve an instance of the...
The response helper function is a useful function that can be used to accomplish two different tasks. If no arguments are supplied to the response function, an implementation of "Illuminate\Contracts\Routing\ResponseFactory" will be returned (by...
The encrypt helper function can be used to encrypt a given string value. The function resolves the configured "Illuminate\Contracts\Encryption\Encrypter" implementation from the Service Container and then calls the encrypt method on the Encrypter...
…ravel application is installed in. It can also be used to construct paths relative to the base path by supplying a $path .The signature of the base_path function is:The following examples will assume that the Laravel application is installed in...