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);