fixed document model class fixed..

This commit is contained in:
Cüneyt Şentürk 2021-01-10 18:59:36 +03:00
parent fb219f877e
commit 648f9f6e62

View File

@ -410,10 +410,10 @@ abstract class DocumentIndex extends Base
} }
if ($group = config('type.' . $type . '.group')) { 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')) { if ($alias = config('type.' . $type . '.alias')) {
$searchStringModel = 'Modules\\' . Str::studly($alias) .'\Models\\' . $group . $prefix; $searchStringModel = 'Modules\\' . Str::studly($alias) .'\Models\\' . $group . $prefix;