Skip to content

Commit e0b11f3

Browse files
committed
2 parents d636466 + 26585e9 commit e0b11f3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Commands/InstallPreset.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ public function handle()
105105
$this->rename = true;
106106
$this->rename_name = text(
107107
label: "What should be the collection name for '{$preset['name']}'?",
108-
placeholder: "E.g. Events",
108+
placeholder: "E.g. '{$preset['name']}'",
109109
required: true
110110
);
111111
$this->rename_handle = Str::slug($this->rename_name, '_');
112112
$this->rename_singular_name = ucfirst(text(
113113
label: "What is the singular name for this '{$this->rename_name}' collection?",
114-
placeholder: "E.g. Event",
114+
placeholder: "E.g. '{$preset['singular_name']}'",
115115
required: true
116116
));
117117
$this->rename_singular_handle = Str::slug($this->rename_singular_name, '_');

src/Commands/InstallPresetPresets.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public function getPresets() {
105105
[
106106
'handle' => 'clients',
107107
'name' => 'Clients',
108+
'singular_name' => 'Client',
108109
'description' => 'A renamable client/partner collection.',
109110
'operations' => [
110111
[
@@ -157,6 +158,7 @@ public function getPresets() {
157158
[
158159
'handle' => 'events',
159160
'name' => 'Events',
161+
'singular_name' => 'Event',
160162
'description' => 'A dated renamable events collection.',
161163
'operations' => [
162164
[
@@ -381,6 +383,7 @@ public function getPresets() {
381383
[
382384
'handle' => 'news',
383385
'name' => 'News',
386+
'singular_name' => 'Item',
384387
'description' => 'A dated renamable news/blog collection with feed.',
385388
'operations' => [
386389
[
@@ -663,6 +666,7 @@ public function getPresets() {
663666
[
664667
'handle' => 'team_members',
665668
'name' => 'Team members',
669+
'singular_name' => 'Member',
666670
'description' => 'A renamable team member collection.',
667671
'operations' => [
668672
[
@@ -731,6 +735,7 @@ public function getPresets() {
731735
[
732736
'handle' => 'vacancies',
733737
'name' => 'Vacancies',
738+
'singluar_name' => 'Vacancy',
734739
'description' => 'A dated renamable vacancies collection.',
735740
'operations' => [
736741
[

0 commit comments

Comments
 (0)