diff --git a/src/Concerns/CodeGenerator.php b/src/Concerns/CodeGenerator.php index 83c8304..f27dc8d 100644 --- a/src/Concerns/CodeGenerator.php +++ b/src/Concerns/CodeGenerator.php @@ -91,55 +91,4 @@ public function afterCodeHasBeenGenerated(string $className, string $path): void { // } - - /** - * Get the destination class path. - * - * @param string $name - * @return string - */ - protected function getPath($name) - { - $name = Str::replaceFirst($this->rootNamespace(), '', $name); - - return $this->getSourcePath().'/'.str_replace('\\', '/', $name).'.php'; - } - - protected function getSourcePath() - { - return $this->generatorPreset()->sourcePath(); - } - - /** - * Get the root namespace for the class. - * - * @return string - */ - protected function rootNamespace() - { - return $this->generatorPreset()->rootNamespace(); - } - - /** - * Get the model for the default guard's user provider. - * - * @return string|null - */ - protected function userProviderModel() - { - return $this->generatorPreset()->userProviderModel(); - } - - /** - * Get the first view directory path from the application configuration. - * - * @param string $path - * @return string - */ - protected function viewPath($path = '') - { - $views = $this->generatorPreset()->viewPath(); - - return $views.($path ? DIRECTORY_SEPARATOR.$path : $path); - } }