protected function corsHandle($request, $response)
    {
        if (!$this->cors->hasAdded()) {
            $this->cors->setRequest('laravel', $request);
            $this->cors->setResponse('laravel', $response);
            $this->cors->handle();
        }

        return $this->cors->getResponse();
    }
protected function corsHandle($request, $response)
    {
        if (!$this->cors->hasAdded()) {
            $this->cors->setRequest('laravel', $request);
            $this->cors->setResponse('laravel', $response);
            $this->cors->handle();
        }

        return $this->cors->getResponse();
    }
protected function corsHandle ( $ request , $ response ) { if ( ! $ this -> cors -> hasAdded ( ) ) { $ this -> cors -> setRequest ( 'laravel' , $ request ) ; $ this -> cors -> setResponse ( 'laravel' , $ response ) ; $ this -> cors -> handle ( ) ; } return $ this -> cors -> getResponse ( ) ; }
CORS serve singleton handle.

@param any $request
@param any $response

@return mixed

@author Seven Du <shiweidu@outlook.com>
CORS serve singleton handle .