public function make($strategy, $key = null, ModelFilterDataInterface $info = null)
    {
        // A filter must have a resolvable strategy for displaying
        if ( ! ($strategyClass = $this->resolveStrategyClass($strategy))) {
            throw new RuntimeException(
                "Could not resolve filter strategy class for {$key}: '{$strategy}'"
            );
        }

        /** @var FilterStrategyInterface $instance */
        $instance = app($strategyClass);

        if (null !== $info) {
            $instance->setFilterInformation($info);
        }

        return $instance;
    }
public function make($strategy, $key = null, ModelFilterDataInterface $info = null)
    {
        // A filter must have a resolvable strategy for displaying
        if ( ! ($strategyClass = $this->resolveStrategyClass($strategy))) {
            throw new RuntimeException(
                "Could not resolve filter strategy class for {$key}: '{$strategy}'"
            );
        }

        /** @var FilterStrategyInterface $instance */
        $instance = app($strategyClass);

        if (null !== $info) {
            $instance->setFilterInformation($info);
        }

        return $instance;
    }
public function make ( $ strategy , $ key = null , ModelFilterDataInterface $ info = null ) { // A filter must have a resolvable strategy for displaying if ( ! ( $ strategyClass = $ this -> resolveStrategyClass ( $ strategy ) ) ) { throw new RuntimeException ( "Could not resolve filter strategy class for {$key}: '{$strategy}'" ) ; } /** @var FilterStrategyInterface $instance */ $ instance = app ( $ strategyClass ) ; if ( null !== $ info ) { $ instance -> setFilterInformation ( $ info ) ; } return $ instance ; }
Makes a filter display instance.

@param string                        $strategy
@param string|null                   $key
@param ModelFilterDataInterface|null $info
@return FilterStrategyInterface
Makes a filter display instance .