protected function replaceModel(&$stub)
    {
        $model = explode('\\', $this->getModel());
        $model = array_pop($model);
        $stub  = str_replace('ModelName', $model, $stub);

        return $stub;
    }
protected function replaceModel(&$stub)
    {
        $model = explode('\\', $this->getModel());
        $model = array_pop($model);
        $stub  = str_replace('ModelName', $model, $stub);

        return $stub;
    }
protected function replaceModel ( & $ stub ) { $ model = explode ( '\\' , $ this -> getModel ( ) ) ; $ model = array_pop ( $ model ) ; $ stub = str_replace ( 'ModelName' , $ model , $ stub ) ; return $ stub ; }
Replace model name.

@param string $stub
@return string
Replace model name .