private function parseRequest($request)
    {
        if (empty($request)) {
            return;
        }

        $this->request = $request;

        // Models used in this request.
        $models_used = [];

        // Review each request.
        foreach ($this->request as $name => $filters) {
            // This name is not present in available attributes.
            if (!Arr::has($this->attributes, $name)) {
                continue;
            }

            // Get the settings for the given attribute.
            $settings = Arr::get($this->attributes, $name);

            // Settings is empty.
            if (empty($settings)) {
                continue;
            }

            // Check and validate each of the filters.
            $filters = self::validateFilters($filters, $settings);

            // Search against current model.
            if (($model_name = Arr::get($settings, 'model_name')) === 'self') {
                $this->search_models['self'][$name] = $filters;
                continue;
            }

            // Search against an model via relationship.
            $models_used[$model_name] = true;
            $this->search_models[$model_name][$name] = $filters;
        }

        // Join the models to this query.
        if (count($models_used)) {
            $this->modelJoin($models_used);
        }
    }
private function parseRequest($request)
    {
        if (empty($request)) {
            return;
        }

        $this->request = $request;

        // Models used in this request.
        $models_used = [];

        // Review each request.
        foreach ($this->request as $name => $filters) {
            // This name is not present in available attributes.
            if (!Arr::has($this->attributes, $name)) {
                continue;
            }

            // Get the settings for the given attribute.
            $settings = Arr::get($this->attributes, $name);

            // Settings is empty.
            if (empty($settings)) {
                continue;
            }

            // Check and validate each of the filters.
            $filters = self::validateFilters($filters, $settings);

            // Search against current model.
            if (($model_name = Arr::get($settings, 'model_name')) === 'self') {
                $this->search_models['self'][$name] = $filters;
                continue;
            }

            // Search against an model via relationship.
            $models_used[$model_name] = true;
            $this->search_models[$model_name][$name] = $filters;
        }

        // Join the models to this query.
        if (count($models_used)) {
            $this->modelJoin($models_used);
        }
    }
private function parseRequest ( $ request ) { if ( empty ( $ request ) ) { return ; } $ this -> request = $ request ; // Models used in this request. $ models_used = [ ] ; // Review each request. foreach ( $ this -> request as $ name => $ filters ) { // This name is not present in available attributes. if ( ! Arr :: has ( $ this -> attributes , $ name ) ) { continue ; } // Get the settings for the given attribute. $ settings = Arr :: get ( $ this -> attributes , $ name ) ; // Settings is empty. if ( empty ( $ settings ) ) { continue ; } // Check and validate each of the filters. $ filters = self :: validateFilters ( $ filters , $ settings ) ; // Search against current model. if ( ( $ model_name = Arr :: get ( $ settings , 'model_name' ) ) === 'self' ) { $ this -> search_models [ 'self' ] [ $ name ] = $ filters ; continue ; } // Search against an model via relationship. $ models_used [ $ model_name ] = true ; $ this -> search_models [ $ model_name ] [ $ name ] = $ filters ; } // Join the models to this query. if ( count ( $ models_used ) ) { $ this -> modelJoin ( $ models_used ) ; } }
Process the provided request.

@return void
Process the provided request .