diff --git a/app/Abstracts/View/Components/DocumentIndex.php b/app/Abstracts/View/Components/DocumentIndex.php index d80ee4eff..257f569f4 100644 --- a/app/Abstracts/View/Components/DocumentIndex.php +++ b/app/Abstracts/View/Components/DocumentIndex.php @@ -410,10 +410,10 @@ abstract class DocumentIndex extends Base } if ($group = config('type.' . $type . '.group')) { - $group = Str::studly(Str::plural($group, 1)) . '\\'; + $group = Str::studly(Str::singular($group) . '\\'; } - $prefix = Str::studly(Str::plural(config('type.' . $type . '.route.prefix'), 1)); + $prefix = Str::studly(Str::singular(config('type.' . $type . '.route.prefix'))); if ($alias = config('type.' . $type . '.alias')) { $searchStringModel = 'Modules\\' . Str::studly($alias) .'\Models\\' . $group . $prefix;