We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f5fb5 commit c9a224eCopy full SHA for c9a224e
src/Models/Traits/BelongsToTenant.php
@@ -48,7 +48,9 @@ function ($model) {
48
49
if (method_exists($model, 'filamentForm') && isset($model->filament_form_id)) {
50
$parentFormId = $model->filament_form_id;
51
- $parentFormClass = get_class($model->filamentForm()->getRelated());
+ $parentFormRelated = $model->filamentForm()->getRelated();
52
+
53
+ $parentFormClass = $parentFormRelated::class;
54
$parentForm = $parentFormClass::find($parentFormId);
55
56
if ($parentForm) {
0 commit comments