src/Services/Finder.php
protected function applyMagnetFilter(MagnetParams $magnet)
    {
        $filters = new Administrator\Form\Collection\Mutable();

        foreach ($magnet->toArray() as $key) {
            $element = new FormElement($key);
            $element->setInput(
                InputFactory::make($key, 'text')
            );
            $filters->push($element);
        }

        $magnetFilters = new Administrator\Filter(
            app('request'),
            $filters
        );

        $this->assembler()->filters($magnetFilters->filters());
    }
protected function applyMagnetFilter(MagnetParams $magnet)
    {
        $filters = new Administrator\Form\Collection\Mutable();

        foreach ($magnet->toArray() as $key) {
            $element = new FormElement($key);
            $element->setInput(
                InputFactory::make($key, 'text')
            );
            $filters->push($element);
        }

        $magnetFilters = new Administrator\Filter(
            app('request'),
            $filters
        );

        $this->assembler()->filters($magnetFilters->filters());
    }
protected function applyMagnetFilter ( MagnetParams $ magnet ) { $ filters = new Administrator \ Form \ Collection \ Mutable ( ) ; foreach ( $ magnet -> toArray ( ) as $ key ) { $ element = new FormElement ( $ key ) ; $ element -> setInput ( InputFactory :: make ( $ key , 'text' ) ) ; $ filters -> push ( $ element ) ; } $ magnetFilters = new Administrator \ Filter ( app ( 'request' ) , $ filters ) ; $ this -> assembler ( ) -> filters ( $ magnetFilters -> filters ( ) ) ; }
Auto-scope fetching items to magnet parameter.

@param MagnetParams $magnet
Auto - scope fetching items to magnet parameter .