Skip to content

Commit a4e265e

Browse files
committed
Fixes repeated class name in the controller issue
1 parent 7164a33 commit a4e265e

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": "A clean code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages or request-forms! It is extremely flexible and customizable to cover many use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.",
5-
"version": "v2.1.4",
5+
"version": "v2.1.5",
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
@@ -412,7 +412,7 @@ protected function getRequiredUseClasses(array $fields, array $additions = [])
412412
return strlen($a)-strlen($b);
413413
});
414414

415-
return implode(PHP_EOL, array_unique(commands));
415+
return implode(PHP_EOL, array_unique($commands));
416416
}
417417

418418
/**

0 commit comments

Comments
 (0)