Skip to content

Commit

Permalink
Fixes Bug #60
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed May 24, 2018
1 parent 595441b commit 78db6a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "crestapps/laravel-code-generator",
"license": "MIT",
"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.",
"version": "v2.2.9",
"version": "v2.2.10",
"keywords": [
"laravel","crud","crud generator",
"laravel crud generator","laravel crud builder",
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/CreateControllerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ protected function getModelNamespace($modelName, $modelDirectory)
$modelDirectory = str_finish($modelDirectory, '\\');
}

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

return rtrim(Helpers::convertSlashToBackslash($namespace), '\\');
}
Expand Down

0 comments on commit 78db6a8

Please sign in to comment.