fixed document model class fixed..
This commit is contained in:
parent
fb219f877e
commit
648f9f6e62
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user