How to exclude a Model's attribute(object) to be passed to filament livewire component by default

I'm trying to build a admin interface for https://github.com/spatie/laravel-uptime-monitor and i got the error
Property type not supported in Livewire for property: [{}]
Property type not supported in Livewire for property: [{}]
I presume this is due to the package has these function in the Monitor model converting url attribute to Url object.
protected $appends = ['raw_url'];

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

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

public function getRawUrlAttribute(): string
{
return (string) $this->url;
}
protected $appends = ['raw_url'];

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

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

public function getRawUrlAttribute(): string
{
return (string) $this->url;
}
But i've no idea how to ignore this or deal with this in filamentphp and need some assistance. Thank you
GitHub
GitHub - spatie/laravel-uptime-monitor: A powerful and easy to conf...
A powerful and easy to configure uptime and ssl monitor - spatie/laravel-uptime-monitor
0 Replies
No replies yetBe the first to reply to this messageJoin