Skip to content

Commit 9ba7404

Browse files
authored
Merge pull request doppar#15 from techmahedy/techmahedy-queue
make:job command prefix job fileName issue resolved
2 parents c68038e + 638d3d4 commit 9ba7404

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Commands/MakeJobCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ protected function handle(): int
3838
}
3939

4040
$namespace = 'App\\Jobs' . (count($parts) > 0 ? '\\' . implode('\\', $parts) : '');
41-
$filePath = base_path('app/Jobs/' . str_replace('/', DIRECTORY_SEPARATOR, $name) . '.php');
41+
$parts[] = $className;
42+
43+
$filePath = base_path(
44+
'app/Jobs/' . implode(DIRECTORY_SEPARATOR, $parts) . '.php'
45+
);
4246

4347
// Check if Job already exists
4448
if (file_exists($filePath)) {

0 commit comments

Comments
 (0)