diff --git a/src/SeederController.php b/src/SeederController.php index 107b5a7..ebfd8cd 100644 --- a/src/SeederController.php +++ b/src/SeederController.php @@ -347,7 +347,7 @@ protected function generateFakerField($key, $dataType = null) protected function getDefaultSeeder() { $defaultSeederClass = "{$this->seederNamespace}\\{$this->defaultSeederClass}"; - $defaultSeederFile = str_replace('\\', DIRECTORY_SEPARATOR, "{$defaultSeederClass}.php"); + $defaultSeederFile = "{$this->seederPath}/{$defaultSeederClass}.php"; if (!class_exists($defaultSeederClass) || !file_exists($defaultSeederFile)) { FileHelper::createDirectory($this->seederPath);