We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c68038e + 638d3d4 commit 9ba7404Copy full SHA for 9ba7404
src/Commands/MakeJobCommand.php
@@ -38,7 +38,11 @@ protected function handle(): int
38
}
39
40
$namespace = 'App\\Jobs' . (count($parts) > 0 ? '\\' . implode('\\', $parts) : '');
41
- $filePath = base_path('app/Jobs/' . str_replace('/', DIRECTORY_SEPARATOR, $name) . '.php');
+ $parts[] = $className;
42
+
43
+ $filePath = base_path(
44
+ 'app/Jobs/' . implode(DIRECTORY_SEPARATOR, $parts) . '.php'
45
+ );
46
47
// Check if Job already exists
48
if (file_exists($filePath)) {
0 commit comments