Search

Showing 7 of 1,216 result(s)

/blog/2018/04/11/laravel-5-splitting-an-array-into-its-keys-and-values-with-divide#content-example-use

The following examples demonstrate how to use the divide method separate an array into its key and value components: The final result would be:

/blog/2018/04/11/laravel-5-splitting-an-array-into-its-keys-and-values-with-divide#content-global-arraydivide-helper-function

The array_divide function is a shortcut to calling Arr::divide . This function is declared in the global namespace.

/blog/2018/04/14/laravel-5-accessing-and-manipulating-configuration-values-with-config#content-example-use

The following example shows how to resolve an instance of "Illuminate\Config\Repository" from the Service Container: After the above code has executed, the value of $configRepository will be, by default, an instance of...

/blog/2018/04/14/laravel-5-accessing-and-manipulating-configuration-values-with-config#content-setting-configuration-values

The config function can be used to set configuration values if the provided $key is an array, and no $default value is supplied (or the $default value supplied is null ). If multiple items are passed in the array, all key/value pairs will added to...

/blog/2018/04/14/laravel-5-accessing-and-manipulating-configuration-values-with-config#content-retrieving-configuration-values

The config function can even be used to retrieve configuration values, as long as the provided $key is not an array and not null . A $default value can be supplied that will be returned if the configuration $key does not exist. The following...

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.