src/Http/Concerns/Transformable.php
public function getRequest()
    {
        if (is_null($this->request)) {
            $this->setRequest(app()->refresh('request', $this, 'setRequest'));
        }

        return $this->request;
    }
public function getRequest()
    {
        if (is_null($this->request)) {
            $this->setRequest(app()->refresh('request', $this, 'setRequest'));
        }

        return $this->request;
    }
public function getRequest ( ) { if ( is_null ( $ this -> request ) ) { $ this -> setRequest ( app ( ) -> refresh ( 'request' , $ this , 'setRequest' ) ) ; } return $ this -> request ; }
Get request instance.

@return \Illuminate\Http\Request
Get request instance .