Skip to content

Commit 8bf7b2f

Browse files
phyceifox
authored andcommitted
Changed hardcoded namespace for singleton models to retrieve the actual namespace
1 parent 19d8c04 commit 8bf7b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Http/Controllers/Admin/SingletonModuleController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function index(?int $parentModuleId = null): mixed
1818

1919
public function editSingleton()
2020
{
21-
$model = "App\\Models\\{$this->getModelName()}";
21+
$model = $this->getRepository()->getBaseModel()::class;
2222

2323
if (!class_exists($model)) {
2424
$model = TwillCapsules::getCapsuleForModel($this->modelName)->getModel();

0 commit comments

Comments
 (0)