src/Provider/ServiceProvider.php
protected function config($item, $instantiate = true)
    {
        $value = $this->app['config']->get('api.'.$item);

        if (is_array($value)) {
            return $instantiate ? $this->instantiateConfigValues($item, $value) : $value;
        }

        return $instantiate ? $this->instantiateConfigValue($item, $value) : $value;
    }
protected function config($item, $instantiate = true)
    {
        $value = $this->app['config']->get('api.'.$item);

        if (is_array($value)) {
            return $instantiate ? $this->instantiateConfigValues($item, $value) : $value;
        }

        return $instantiate ? $this->instantiateConfigValue($item, $value) : $value;
    }
protected function config ( $ item , $ instantiate = true ) { $ value = $ this -> app [ 'config' ] -> get ( 'api.' . $ item ) ; if ( is_array ( $ value ) ) { return $ instantiate ? $ this -> instantiateConfigValues ( $ item , $ value ) : $ value ; } return $ instantiate ? $ this -> instantiateConfigValue ( $ item , $ value ) : $ value ; }
Retrieve and instantiate a config value if it exists and is a class.

@param string $item
@param bool   $instantiate

@return mixed
Retrieve and instantiate a config value if it exists and is a class .