From 306fc1391b37b53d9486a9a33a54f721a7262540 Mon Sep 17 00:00:00 2001 From: Werner Freytag Date: Tue, 6 Jun 2023 14:48:26 +0200 Subject: [PATCH 1/2] change route action --- routes/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index e1fb6f4..c9523ad 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,7 @@ url()); })->unique()->each(function ($sitePrefix) { Route::group(['prefix' => $sitePrefix], static function () { - Route::get(config('pecotamic.sitemap.url'), 'Pecotamic\\Sitemap\\Http\\Controllers\\SitemapController@show'); + Route::get(config('pecotamic.sitemap.url'), [SitemapController::class, 'show']); }); }); From c2f39673a9e278557ea9b610b601b5e7342a82b5 Mon Sep 17 00:00:00 2001 From: Werner Freytag Date: Thu, 9 May 2024 23:46:46 +0200 Subject: [PATCH 2/2] add support for statamic 5 --- README.md | 6 ++++-- composer.json | 9 +++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f3fdc3d..c56031f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # Sitemap Addon for Statamic ![Statamic 3.0+](https://img.shields.io/badge/Statamic-3.0+-FF269E?style=for-the-badge&link=https://statamic.com) +![Statamic 4.0+](https://img.shields.io/badge/Statamic-4.0+-FF269E?style=for-the-badge&link=https://statamic.com) +![Statamic 5.0+](https://img.shields.io/badge/Statamic-5.0+-FF269E?style=for-the-badge&link=https://statamic.com) -Automatically adds a sitemap to your Statamic v3 web site. The default path is <your web site>/sitemap.xml +Automatically adds a sitemap to your Statamic web site. The default path is <your web site>/sitemap.xml ## Installation @@ -12,7 +14,7 @@ Include the package with composer: composer require pecotamic/sitemap ``` -The package requires Laravel 7+ and PHP 7.3+. It will auto register. +The package requires PHP 7.3+ or PHP 8+. It will auto register. ## Configuration (optional) diff --git a/composer.json b/composer.json index ca4a2a7..b05d6db 100644 --- a/composer.json +++ b/composer.json @@ -8,8 +8,8 @@ "sitemap" ], "require": { - "php": "^5.4|^7.0|^8.0", - "statamic/cms": "^3.0|^4.0" + "php": "^7.1|^8.0", + "statamic/cms": "^3.0|^4.0|^5.0" }, "autoload": { "psr-4": { @@ -30,5 +30,10 @@ "Pecotamic\\Sitemap\\ServiceProvider" ] } + }, + "config": { + "allow-plugins": { + "pixelfear/composer-dist-plugin": true + } } }