You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the contents of the published config file:
31
31
32
32
```php
33
+
<?php
34
+
33
35
return [
34
36
/**
35
37
* Specifies the default filesystem disk that should be used.
@@ -73,10 +75,19 @@ return [
73
75
'/pages_sitemap.xml',
74
76
'/posts_sitemap.xml',
75
77
],
78
+
79
+
/**
80
+
* Specifies the model class to be used for fetching posts to be included in the sitemap.
81
+
* This setting allows for customization of the source of content, enabling the sitemap to reflect the structure and content of your website accurately.
82
+
* The specified model should implement any necessary logic to retrieve only the posts that should be visible to search engines.
83
+
*/
84
+
'post_model' => [
85
+
//App\Models\Post::class,
86
+
],
76
87
];
77
88
```
78
89
79
-
You can also add your models directly by implementing the \Spatie\Sitemap\Contracts\Sitemapable interface.
90
+
You can also add your models directly by implementing the \Spatie\Sitemap\Contracts\Sitemapable interface. You also need to define your post_model in the fv-sitemap.php config file.
0 commit comments