diff --git a/composer.json b/composer.json index b40dc1a..cf55c4f 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,6 @@ { "name": "tdwesten/statamic-builder", + "description": "A fluent blueprint and fieldset builder for Statamic.", "autoload": { "psr-4": { "Tdwesten\\StatamicBuilder\\": "src" @@ -43,4 +44,4 @@ "pixelfear/composer-dist-plugin": true } } -} +} \ No newline at end of file diff --git a/src/Console/MakeBlueprint.php b/src/Console/MakeBlueprintCommand.php similarity index 92% rename from src/Console/MakeBlueprint.php rename to src/Console/MakeBlueprintCommand.php index ba47293..2033c01 100644 --- a/src/Console/MakeBlueprint.php +++ b/src/Console/MakeBlueprintCommand.php @@ -4,7 +4,7 @@ use Illuminate\Console\GeneratorCommand as BaseGeneratorCommand; -class MakeBlueprint extends BaseGeneratorCommand +class MakeBlueprintCommand extends BaseGeneratorCommand { /** * @var string diff --git a/src/Console/MakeFieldset.php b/src/Console/MakeFieldsetCommand.php similarity index 92% rename from src/Console/MakeFieldset.php rename to src/Console/MakeFieldsetCommand.php index 345dc28..e99d80b 100644 --- a/src/Console/MakeFieldset.php +++ b/src/Console/MakeFieldsetCommand.php @@ -4,7 +4,7 @@ use Illuminate\Console\GeneratorCommand as BaseGeneratorCommand; -class MakeFieldset extends BaseGeneratorCommand +class MakeFieldsetCommand extends BaseGeneratorCommand { /** * @var string diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 967cbfe..2779977 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -54,8 +54,8 @@ public function boot() ], 'statamic'); $this->commands([ - Console\MakeBlueprint::class, - Console\MakeFieldset::class, + Console\MakeBlueprintCommand::class, + Console\MakeFieldsetCommand::class, Console\Importer::class, Console\Export::class, ]); diff --git a/stubs/blueprint.stub b/stubs/blueprint.stub index f32ca2c..7322492 100644 --- a/stubs/blueprint.stub +++ b/stubs/blueprint.stub @@ -22,7 +22,9 @@ class {{ class }} extends Blueprint return [ Tab::make('General', [ Section::make('General', [ - Text::make('Title', 'title')->required(), + Text::make('title') + ->displayName('Title') + ->required() ]), ]), ];