From cd93a2acf73fcda16421381bf68166777dc90f64 Mon Sep 17 00:00:00 2001 From: Sugeng Sulistiyawan Date: Wed, 17 Apr 2024 14:28:14 +0700 Subject: [PATCH] fixed bugs auto create seeder --- src/SeederController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SeederController.php b/src/SeederController.php index aacf8d3..0b3b6a0 100644 --- a/src/SeederController.php +++ b/src/SeederController.php @@ -345,7 +345,7 @@ protected function generateFakerField($key) protected function getDefaultSeeder() { $defaultSeederClass = "{$this->seederNamespace}\\{$this->defaultSeederClass}"; - $defaultSeederFile = "{$defaultSeederClass}.php"; + $defaultSeederFile = str_replace('\\', DIRECTORY_SEPARATOR, "{$defaultSeederClass}.php"); if (!class_exists($defaultSeederClass) || !file_exists($defaultSeederFile)) { FileHelper::createDirectory($this->seederPath);