Skip to content

Commit 8f024ff

Browse files
committed
Merge branch 'release/0.1.7'
2 parents abd9dc2 + c5c14d3 commit 8f024ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jasrys/laravel-crud",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "Laravel CRUD generator",
55
"require-dev": {
66
"orchestra/testbench": "^3.6",

src/MakeCrud.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MakeCrud extends Command
1111
*
1212
* @var string
1313
*/
14-
protected $signature = 'crud:make {model} {--attributes=}';
14+
protected $signature = 'make:crud {model} {--attributes=}';
1515

1616
/**
1717
* The console command description.
@@ -254,7 +254,7 @@ protected function createFormView($modelName, $attributes)
254254

255255
$formattedAttributes = $attributes->map(function ($attribute) use ($modelName) {
256256
return "\t" . '<div>' . PHP_EOL
257-
. "\t\t" . '<label for="' . $attribute . '">' . ucfirst($attribute) . '</label>'
257+
. "\t\t" . '<label for="' . $attribute . '">' . ucfirst(str_replace('_', ' ', $attribute)) . '</label>'
258258
. PHP_EOL
259259
. "\t\t" . '<input type="text" name="' . $attribute . '" class="form-control" value="{{ $' . strtolower($modelName) . "->{$attribute} ?? '' }}" . '" />'
260260
. PHP_EOL . "\t" . '</div>'

0 commit comments

Comments
 (0)