From 648f9f6e629b7917531758653068cd8b50278ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sun, 10 Jan 2021 18:59:36 +0300 Subject: [PATCH] fixed document model class fixed.. --- app/Abstracts/View/Components/DocumentIndex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;