protected function updateConfig($key, $value = null, $default = null)
    {
        $value = $value ?: singleton('env')->get('Cookie.'.$key);

        if (!$value && !singleton('env')->get('Cookie.dont_use_same_config_as_sessions')) {
            $value = singleton('env')->get('Session.'.$key);
        }

        if(!$value && $default) {
            $value = $default;
        }

        return $value;
    }
protected function updateConfig($key, $value = null, $default = null)
    {
        $value = $value ?: singleton('env')->get('Cookie.'.$key);

        if (!$value && !singleton('env')->get('Cookie.dont_use_same_config_as_sessions')) {
            $value = singleton('env')->get('Session.'.$key);
        }

        if(!$value && $default) {
            $value = $default;
        }

        return $value;
    }
protected function updateConfig ( $ key , $ value = null , $ default = null ) { $ value = $ value ? : singleton ( 'env' ) -> get ( 'Cookie.' . $ key ) ; if ( ! $ value && ! singleton ( 'env' ) -> get ( 'Cookie.dont_use_same_config_as_sessions' ) ) { $ value = singleton ( 'env' ) -> get ( 'Session.' . $ key ) ; } if ( ! $ value && $ default ) { $ value = $ default ; } return $ value ; }
Allow setting cookie domain
@param string $key
@param mixed $value
@param mixed $default
@return mixed
Allow setting cookie domain