protected function prepareResponse(Request $request)
    {
        // handle request with laravel or lumen
        $response = $this->handleRequest($request);

        // process terminating logics
        $this->terminate($request, $response);

        return $response;
    }
protected function prepareResponse(Request $request)
    {
        // handle request with laravel or lumen
        $response = $this->handleRequest($request);

        // process terminating logics
        $this->terminate($request, $response);

        return $response;
    }
protected function prepareResponse ( Request $ request ) { // handle request with laravel or lumen $ response = $ this -> handleRequest ( $ request ) ; // process terminating logics $ this -> terminate ( $ request , $ response ) ; return $ response ; }
Handle request for non-ob case.

@param \Illuminate\Http\Request $request

@return \Illuminate\Http\Response
@throws \ReflectionException
Handle request for non - ob case .