protected function call($uri)
    {
        $request = Request::create($uri, 'GET');

        $kernel = $this->app->make(HttpKernel::class);

        $response = $kernel->handle($request);

        $kernel->terminate($request, $response);

        return $response;
    }
protected function call($uri)
    {
        $request = Request::create($uri, 'GET');

        $kernel = $this->app->make(HttpKernel::class);

        $response = $kernel->handle($request);

        $kernel->terminate($request, $response);

        return $response;
    }
protected function call ( $ uri ) { $ request = Request :: create ( $ uri , 'GET' ) ; $ kernel = $ this -> app -> make ( HttpKernel :: class ) ; $ response = $ kernel -> handle ( $ request ) ; $ kernel -> terminate ( $ request , $ response ) ; return $ response ; }
Call the given URI and return a Response.

@param  string $uri

@return \Illuminate\Http\Response
Call the given URI and return a Response .