'I have a problem with this package: https://github.com/spatie/laravel-sitemap. How ro reset items array in Spatie sitemap?

When I try to execute code normally everything is fine. And I have a similar array below.

 Spatie\Sitemap\Sitemap {#426 ▼#tags: array:2 [▶]}

But sometimes I want to empty this array and it looks like this. But I do not know how to do it

^ Spatie\Sitemap\Sitemap {#426 ▼#tags: []}

My main question is how can I empty the tag array?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source