src/Services/Finder.php
protected function removeDuplicates($magnet, $filters)
    {
        $magnetKeys = $magnet->toArray();

        foreach ($filters as $filter) {
            if (array_has($magnetKeys, $filter->id())) {
                unset($magnetKeys[$filter->id()]);
            }
        }

        $class = get_class(app('scaffold.magnet'));

        return new $class(app('request'), $magnetKeys);
    }
protected function removeDuplicates($magnet, $filters)
    {
        $magnetKeys = $magnet->toArray();

        foreach ($filters as $filter) {
            if (array_has($magnetKeys, $filter->id())) {
                unset($magnetKeys[$filter->id()]);
            }
        }

        $class = get_class(app('scaffold.magnet'));

        return new $class(app('request'), $magnetKeys);
    }
protected function removeDuplicates ( $ magnet , $ filters ) { $ magnetKeys = $ magnet -> toArray ( ) ; foreach ( $ filters as $ filter ) { if ( array_has ( $ magnetKeys , $ filter -> id ( ) ) ) { unset ( $ magnetKeys [ $ filter -> id ( ) ] ) ; } } $ class = get_class ( app ( 'scaffold.magnet' ) ) ; return new $ class ( app ( 'request' ) , $ magnetKeys ) ; }
Solving problem then magnet params gets used for auto-filtering
even if there is another filter defined with the same name.

@param $magnet
@param $filters

@return array
Solving problem then magnet params gets used for auto - filtering even if there is another filter defined with the same name .