private function methods()
    {
        $methods = '';
        foreach (config('cors.methods') as $method) {
            $methods = $methods . $method . ', ';
        }
        header('Access-Control-Allow-Methods: ' . $methods);
    }
private function methods()
    {
        $methods = '';
        foreach (config('cors.methods') as $method) {
            $methods = $methods . $method . ', ';
        }
        header('Access-Control-Allow-Methods: ' . $methods);
    }
private function methods ( ) { $ methods = '' ; foreach ( config ( 'cors.methods' ) as $ method ) { $ methods = $ methods . $ method . ', ' ; } header ( 'Access-Control-Allow-Methods: ' . $ methods ) ; }
set access control methods
set access control methods