src/Concerns/InteractsWithPages.php
protected function makeRequest($method, $uri, $parameters = [], $cookies = [], $files = [])
    {
        $uri = $this->prepareUrlForRequest($uri);

        $this->call($method, $uri, $parameters, $cookies, $files);

        $this->clearInputs()->followRedirects()->assertPageLoaded($uri);

        $this->currentUri = $this->app->make('request')->fullUrl();

        $this->crawler = new Crawler($this->response->getContent(), $this->currentUri);

        return $this;
    }
protected function makeRequest($method, $uri, $parameters = [], $cookies = [], $files = [])
    {
        $uri = $this->prepareUrlForRequest($uri);

        $this->call($method, $uri, $parameters, $cookies, $files);

        $this->clearInputs()->followRedirects()->assertPageLoaded($uri);

        $this->currentUri = $this->app->make('request')->fullUrl();

        $this->crawler = new Crawler($this->response->getContent(), $this->currentUri);

        return $this;
    }
protected function makeRequest ( $ method , $ uri , $ parameters = [ ] , $ cookies = [ ] , $ files = [ ] ) { $ uri = $ this -> prepareUrlForRequest ( $ uri ) ; $ this -> call ( $ method , $ uri , $ parameters , $ cookies , $ files ) ; $ this -> clearInputs ( ) -> followRedirects ( ) -> assertPageLoaded ( $ uri ) ; $ this -> currentUri = $ this -> app -> make ( 'request' ) -> fullUrl ( ) ; $ this -> crawler = new Crawler ( $ this -> response -> getContent ( ) , $ this -> currentUri ) ; return $ this ; }
Make a request to the application and create a Crawler instance.

@param  string  $method
@param  string  $uri
@param  array  $parameters
@param  array  $cookies
@param  array  $files
@return $this
Make a request to the application and create a Crawler instance .