private function setRequest(Request $request)
    {
        $this->mergeVisitorActivityData([
            'method'      => $request->method(),
            'is_ajax'     => $request->ajax(),
            'is_secure'   => $request->isSecure(),
            'is_json'     => $request->isJson(),
            'wants_json'  => $request->wantsJson(),
        ]);

        $this->request = $request;

        return $this;
    }
private function setRequest(Request $request)
    {
        $this->mergeVisitorActivityData([
            'method'      => $request->method(),
            'is_ajax'     => $request->ajax(),
            'is_secure'   => $request->isSecure(),
            'is_json'     => $request->isJson(),
            'wants_json'  => $request->wantsJson(),
        ]);

        $this->request = $request;

        return $this;
    }
private function setRequest ( Request $ request ) { $ this -> mergeVisitorActivityData ( [ 'method' => $ request -> method ( ) , 'is_ajax' => $ request -> ajax ( ) , 'is_secure' => $ request -> isSecure ( ) , 'is_json' => $ request -> isJson ( ) , 'wants_json' => $ request -> wantsJson ( ) , ] ) ; $ this -> request = $ request ; return $ this ; }
Set the request.

@param  \Illuminate\Http\Request  $request

@return self
Set the request .