protected function populateStub($model, $stub) { $stub = str_replace('DummyClass', $this->getClassName($model), $stub); $stub = str_replace('DummyModel', $model, $stub); return $stub; }