public static function respond(Response $response)
    {
        $next = function () use ($response) {
            return $response;
        };

        (new static())->handle(Request::capture(), $next)->send();

        exit;
    }
public static function respond(Response $response)
    {
        $next = function () use ($response) {
            return $response;
        };

        (new static())->handle(Request::capture(), $next)->send();

        exit;
    }
public static function respond ( Response $ response ) { $ next = function ( ) use ( $ response ) { return $ response ; } ; ( new static ( ) ) -> handle ( Request :: capture ( ) , $ next ) -> send ( ) ; exit ; }
Send a response through this middleware.

@param Response $response
Send a response through this middleware .