*/ protected $guarded = []; #[\Override] public function getLocalizedUrl(string $locale): string { return "http://localhost/{$locale}/articles/{$this->slug}"; } /** @return Url|string|string[] */ #[\Override] public function toSitemapTag(): Url | string | array { return $this->getLocalizedUrl(app()->getLocale()); } }