We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19d8c04 commit 8bf7b2fCopy full SHA for 8bf7b2f
src/Http/Controllers/Admin/SingletonModuleController.php
@@ -18,7 +18,7 @@ public function index(?int $parentModuleId = null): mixed
18
19
public function editSingleton()
20
{
21
- $model = "App\\Models\\{$this->getModelName()}";
+ $model = $this->getRepository()->getBaseModel()::class;
22
23
if (!class_exists($model)) {
24
$model = TwillCapsules::getCapsuleForModel($this->modelName)->getModel();
0 commit comments