Skip to content

Commit 78db6a8

Browse files
committed
Fixes Bug #60
1 parent 595441b commit 78db6a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "crestapps/laravel-code-generator",
33
"license": "MIT",
44
"description": "An intelligent code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages and/or form-requests! It is extremely flexible and customizable to cover many on the use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.",
5-
"version": "v2.2.9",
5+
"version": "v2.2.10",
66
"keywords": [
77
"laravel","crud","crud generator",
88
"laravel crud generator","laravel crud builder",

src/Commands/CreateControllerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ protected function getModelNamespace($modelName, $modelDirectory)
552552
$modelDirectory = str_finish($modelDirectory, '\\');
553553
}
554554

555-
$namespace = Helpers::getAppNamespace() . Config::getModelsPath($modelDirectory . $modelName);
555+
$namespace = Helpers::getAppNamespace() . ltrim(Config::getModelsPath($modelDirectory . $modelName), '\\');
556556

557557
return rtrim(Helpers::convertSlashToBackslash($namespace), '\\');
558558
}

0 commit comments

Comments
 (0)