protected function clean($request)
    {
        $this->cleanParameterBag($request->query);

        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
protected function clean($request)
    {
        $this->cleanParameterBag($request->query);

        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
protected function clean ( $ request ) { $ this -> cleanParameterBag ( $ request -> query ) ; if ( $ request -> isJson ( ) ) { $ this -> cleanParameterBag ( $ request -> json ( ) ) ; } elseif ( $ request -> request !== $ request -> query ) { $ this -> cleanParameterBag ( $ request -> request ) ; } }
Clean the request's data.

@param  \Illuminate\Http\Request  $request
@return void
Clean the request s data .