From 638d3d48726f831abe073e8f960c4aeaa5cb1004 Mon Sep 17 00:00:00 2001 From: Arif Hoque Date: Sun, 16 Nov 2025 10:33:44 +0600 Subject: [PATCH] make:job command prefix job fileName issue resolved --- src/Commands/MakeJobCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Commands/MakeJobCommand.php b/src/Commands/MakeJobCommand.php index ae0b650..34ee152 100644 --- a/src/Commands/MakeJobCommand.php +++ b/src/Commands/MakeJobCommand.php @@ -38,7 +38,11 @@ protected function handle(): int } $namespace = 'App\\Jobs' . (count($parts) > 0 ? '\\' . implode('\\', $parts) : ''); - $filePath = base_path('app/Jobs/' . str_replace('/', DIRECTORY_SEPARATOR, $name) . '.php'); + $parts[] = $className; + + $filePath = base_path( + 'app/Jobs/' . implode(DIRECTORY_SEPARATOR, $parts) . '.php' + ); // Check if Job already exists if (file_exists($filePath)) {