protected function resolveSettings(array $settings = [])
    {
        $defaultSettings = [
            'allow-credentiails' => false,
            'allow-headers'      => [],
            'expose-headers'     => [],
            'origins'            => [],
            'methods'            => [],
            'max-age'            => 0,
        ];

        $this->config->set([
            'cors' => array_merge($defaultSettings, $this->config->pull('cors')),
        ]);
    }
protected function resolveSettings(array $settings = [])
    {
        $defaultSettings = [
            'allow-credentiails' => false,
            'allow-headers'      => [],
            'expose-headers'     => [],
            'origins'            => [],
            'methods'            => [],
            'max-age'            => 0,
        ];

        $this->config->set([
            'cors' => array_merge($defaultSettings, $this->config->pull('cors')),
        ]);
    }
protected function resolveSettings ( array $ settings = [ ] ) { $ defaultSettings = [ 'allow-credentiails' => false , 'allow-headers' => [ ] , 'expose-headers' => [ ] , 'origins' => [ ] , 'methods' => [ ] , 'max-age' => 0 , ] ; $ this -> config -> set ( [ 'cors' => array_merge ( $ defaultSettings , $ this -> config -> pull ( 'cors' ) ) , ] ) ; }
Parse settings.

@param array $settings

@return array

@author Seven Du <shiweidu@outlook.com>
Parse settings .