src/Request/LaravelRequest.php
public function getMetaData()
    {
        $data = [];

        $data['url'] = $this->request->fullUrl();

        $data['httpMethod'] = $this->request->getMethod();

        $data['params'] = $this->request->input();

        $data['clientIp'] = $this->request->getClientIp();

        if ($agent = $this->request->header('User-Agent')) {
            $data['userAgent'] = $agent;
        }

        if ($headers = $this->request->headers->all()) {
            $data['headers'] = $headers;
        }

        return ['request' => $data];
    }
public function getMetaData()
    {
        $data = [];

        $data['url'] = $this->request->fullUrl();

        $data['httpMethod'] = $this->request->getMethod();

        $data['params'] = $this->request->input();

        $data['clientIp'] = $this->request->getClientIp();

        if ($agent = $this->request->header('User-Agent')) {
            $data['userAgent'] = $agent;
        }

        if ($headers = $this->request->headers->all()) {
            $data['headers'] = $headers;
        }

        return ['request' => $data];
    }
public function getMetaData ( ) { $ data = [ ] ; $ data [ 'url' ] = $ this -> request -> fullUrl ( ) ; $ data [ 'httpMethod' ] = $ this -> request -> getMethod ( ) ; $ data [ 'params' ] = $ this -> request -> input ( ) ; $ data [ 'clientIp' ] = $ this -> request -> getClientIp ( ) ; if ( $ agent = $ this -> request -> header ( 'User-Agent' ) ) { $ data [ 'userAgent' ] = $ agent ; } if ( $ headers = $ this -> request -> headers -> all ( ) ) { $ data [ 'headers' ] = $ headers ; } return [ 'request' => $ data ] ; }
Get the request formatted as meta data.

@return array
Get the request formatted as meta data .