protected function replaceViewPath(&$stub, $viewPath) { $stub = str_replace('{{viewPath}}', $viewPath, $stub); return $this; }