src/Filter.php
public function setFilters(Mutable $filters = null)
    {
        if ($filters) {
            $filters = $filters->map(function ($element) {
                if ($this->request->has($id = $element->id())) {
                    $element->getInput()->setValue(
                        $this->request->get($id)
                    );
                }

                return $element;
            });
        }

        $this->filters = $filters;

        return $this;
    }
public function setFilters(Mutable $filters = null)
    {
        if ($filters) {
            $filters = $filters->map(function ($element) {
                if ($this->request->has($id = $element->id())) {
                    $element->getInput()->setValue(
                        $this->request->get($id)
                    );
                }

                return $element;
            });
        }

        $this->filters = $filters;

        return $this;
    }
public function setFilters ( Mutable $ filters = null ) { if ( $ filters ) { $ filters = $ filters -> map ( function ( $ element ) { if ( $ this -> request -> has ( $ id = $ element -> id ( ) ) ) { $ element -> getInput ( ) -> setValue ( $ this -> request -> get ( $ id ) ) ; } return $ element ; } ) ; } $ this -> filters = $ filters ; return $ this ; }
Set collection of filters.

@param null|Mutable $filters

@return mixed|void
Set collection of filters .