src/HandlePreflight.php
public function handle($request, Closure $next)
    {
        if ($this->cors->isPreflightRequest($request)) {
            return $this->cors->handlePreflightRequest($request);
        }

        return $next($request);
    }
public function handle($request, Closure $next)
    {
        if ($this->cors->isPreflightRequest($request)) {
            return $this->cors->handlePreflightRequest($request);
        }

        return $next($request);
    }
public function handle ( $ request , Closure $ next ) { if ( $ this -> cors -> isPreflightRequest ( $ request ) ) { return $ this -> cors -> handlePreflightRequest ( $ request ) ; } return $ next ( $ request ) ; }
Handle an incoming Preflight request.

@param  \Illuminate\Http\Request $request
@param  \Closure $next
@return mixed
Handle an incoming Preflight request .