Merge branch 'relations-filters' into 'develop'
fix: 🐛 change the model filters key in the command
See merge request ldc-web/projets/sitemap-generator!3
This commit is contained in:
commit
f5d8d21d01
4 changed files with 9 additions and 3 deletions
|
|
@ -6,6 +6,12 @@ All notable changes to `sitemap-generator` will be documented in this file.
|
|||
- This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
||||
- Commits respect [Conventionnal commits](https://www.conventionalcommits.org/en/v1.0.0/) & use [Gitmoji](https://gitmoji.dev/).
|
||||
|
||||
## **[v5.0.1] - 18/07/2025**
|
||||
|
||||
### Added
|
||||
|
||||
- fix: 🐛 change the model filters key in the command
|
||||
|
||||
## **[v5.0.0] - 18/07/2025**
|
||||
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ If you discover any security related issues, please email <equipe.web@ldc.fr> in
|
|||
|
||||
# Changelog
|
||||
|
||||
Latest version v5.0.0.
|
||||
Latest version v5.0.1.
|
||||
|
||||
See the [CHANGELOG.md](CHANGELOG.md) file for details.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "uwil/sitemap-generator",
|
||||
"description": "Create sitemap.xml",
|
||||
"version": "5.0.0",
|
||||
"version": "5.0.1",
|
||||
"require": {
|
||||
"illuminate/support": "~11|~12",
|
||||
"laravel/framework": "~11|~12",
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class GenerateSitemapCommand extends Command
|
|||
$sitemap->add(SitemapHelper::generateUrl($page));
|
||||
}
|
||||
foreach (config('sitemap-generator.cruds') as $crud) {
|
||||
$modelFilters = $crud['filters'] ?? [];
|
||||
$modelFilters = $crud['modelFilters'] ?? [];
|
||||
$relationsFilters = $crud['relationFilters'] ?? [];
|
||||
$sitemap->add(
|
||||
$crud['model']::query()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue