We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f433f09 commit 35a04e8Copy full SHA for 35a04e8
src/Cms.php
@@ -22,7 +22,7 @@ public function registerPostTypes($postTypes): void
22
23
$name = Str::title(str_replace('-', ' ', $slug));
24
$type->name = $data['name'] ?? $name;
25
- $type->singular_name = $data['name_singular'] ?? Str::singular($name);
+ $type->singular_name = $data['name_singular'] ?? Str::singular($data['name'] ?? $name);
26
if (config('cms.should_translate')) $type->lang = Languages::default();
27
28
$type->slug = $slug;
0 commit comments