diff --git a/src/Helpers/RecognizeClassHelper.php b/src/Helpers/RecognizeClassHelper.php new file mode 100644 index 0000000..07b59ae --- /dev/null +++ b/src/Helpers/RecognizeClassHelper.php @@ -0,0 +1,42 @@ +value; + + if (Str::contains($slug, $objectTypeName)) { + return Str::ucfirst(Str::singular($objectTypeName)); + } + } + + return $objectName; + } +} diff --git a/src/Helpers/TypesEnum.php b/src/Helpers/TypesEnum.php new file mode 100644 index 0000000..70888ed --- /dev/null +++ b/src/Helpers/TypesEnum.php @@ -0,0 +1,22 @@ +