Call to undefined method Illuminate\Database\Eloquent\Relations\MorphOne::getQualifiedOwnerKeyName()

model instance

public function subscription()
{
return $this->morphOne(Subscription::class, 'installable');
}

public function getTableQuery(): Builder
{
return Instance::where('business_id', Business::current()->id)->where('name', '!=', 'Instância IA');
}

public function getTableFilters(): array
{
return [
SelectFilter::make('subscription')->relationship('subscription', 'status')
];
}


I'm getting this error in getTableFilter, has anyone experienced this?
Was this page helpful?