Property type not supported in Livewire when using computedProperties

I tried to create a resource for some third party model (Spatie\UptimeMonitor\Models\Monitor). This model uses the following method:

  public function getUrlAttribute(): ?Url
  {
      if (! isset($this->attributes['url'])) {
          return null;
      }

      return Url::fromString($this->attributes['url']);
  }


On edit page, I get now an exception Property type not supported in Livewire for property: [{}]

The weird thing is, that i get this exception, even if I dont use the
url
property at all in the form:

 public static function form(Form $form): Form
  {
      return $form
          ->schema([]);
}


When commenting the getUrlAttribute out from the package, the error isn't thrown.

Any ideas how to get around this error, without messing up the package?
Was this page helpful?