for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
if (!function_exists('config')) {
/**
* Get / set the specified configuration value.
*
* If an array is passed as the key, we will assume you want to set an array of values.
* @param array|string $key
* @param mixed $default
* @return \Nip\Config\Config|mixed
*/
function config($key = null, $default = null)
{
if (is_null($key)) {
return app('config');
}
if (is_array($key)) {
return app('config')->set($key);
return app('config')->get($key, $default);