src/Console/SearchableModelMakeCommand.php
protected function buildClass($name)
    {
        $stub = parent::buildClass($name);

        $indexConfigurator = $this->getIndexConfigurator();

        $stub = str_replace(
            'DummyIndexConfigurator',
            $indexConfigurator ? "{$indexConfigurator}::class" : 'null', $stub
        );

        $searchRule = $this->getSearchRule();

        $stub = str_replace(
            'DummySearchRule',
            $searchRule ? "{$searchRule}::class" : '//', $stub
        );

        return $stub;
    }
protected function buildClass($name)
    {
        $stub = parent::buildClass($name);

        $indexConfigurator = $this->getIndexConfigurator();

        $stub = str_replace(
            'DummyIndexConfigurator',
            $indexConfigurator ? "{$indexConfigurator}::class" : 'null', $stub
        );

        $searchRule = $this->getSearchRule();

        $stub = str_replace(
            'DummySearchRule',
            $searchRule ? "{$searchRule}::class" : '//', $stub
        );

        return $stub;
    }
protected function buildClass ( $ name ) { $ stub = parent :: buildClass ( $ name ) ; $ indexConfigurator = $ this -> getIndexConfigurator ( ) ; $ stub = str_replace ( 'DummyIndexConfigurator' , $ indexConfigurator ? "{$indexConfigurator}::class" : 'null' , $ stub ) ; $ searchRule = $ this -> getSearchRule ( ) ; $ stub = str_replace ( 'DummySearchRule' , $ searchRule ? "{$searchRule}::class" : '//' , $ stub ) ; return $ stub ; }
Build the class.

@param string $name
@return string
Build the class .