html = $html;
return $this;
}
public function getHref(): string
{
if ($this->isRemote()) {
return $this->getPath();
}
return asset($this->getRelativePublicPath()) . '?v=' . $this->getVersion();
}
public function getHtml(): Htmlable
{
$html = value($this->html);
if (str($html)->contains('getHref();
return new HtmlString("");
}
public function getRelativePublicPath(): string
{
$path = config('filament.assets_path', '');
return ltrim("{$path}/css/{$this->getPackage()}/{$this->getId()}.css", '/');
}
public function getPublicPath(): string
{
return public_path($this->getRelativePublicPath());
}
}