diff --git a/config/services.php b/config/services.php
index 60c7c13..ec226a4 100644
--- a/config/services.php
+++ b/config/services.php
@@ -35,8 +35,4 @@ return [
],
],
- 'google' => [
- 'site_verification' => env('GOOGLE_SITE_VERIFICATION'),
- ],
-
];
diff --git a/resources/views/layouts/public.blade.php b/resources/views/layouts/public.blade.php
index 11e4cc2..7d9a303 100644
--- a/resources/views/layouts/public.blade.php
+++ b/resources/views/layouts/public.blade.php
@@ -7,8 +7,8 @@
- @if(config('services.google.site_verification'))@endif
+
diff --git a/resources/views/sitemap.blade.php b/resources/views/sitemap.blade.php
index b5bdec7..4a5190e 100644
--- a/resources/views/sitemap.blade.php
+++ b/resources/views/sitemap.blade.php
@@ -1,9 +1,10 @@
{!! '' !!}
-@foreach($urls as $url)
+@foreach ($urls as $url)
{{ $url['loc'] }}
- weekly
+ {{ $url['lastmod'] }}
+ {{ $url['changefreq'] }}
{{ $url['priority'] }}
@endforeach
diff --git a/routes/web.php b/routes/web.php
index 7b557d0..7a6b869 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -13,14 +13,16 @@ Route::get('/submit-evidence', [EvidenceSubmissionController::class, 'create'])-
Route::post('/submit-evidence', [EvidenceSubmissionController::class, 'store'])->name('evidence.store')->middleware('throttle:5,1');
Route::get('/sitemap.xml', function () {
+ $lastModified = now()->toDateString();
+
$urls = [
- ['loc' => route('home'), 'priority' => '1.0'],
- ['loc' => route('valuations'), 'priority' => '0.9'],
- ['loc' => route('park-holidays'), 'priority' => '0.9'],
- ['loc' => route('owner-stories'), 'priority' => '0.8'],
- ['loc' => route('rights'), 'priority' => '0.8'],
- ['loc' => route('evidence'), 'priority' => '0.8'],
- ['loc' => route('evidence.create'), 'priority' => '0.6'],
+ ['loc' => route('home'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '1.0'],
+ ['loc' => route('valuations'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.9'],
+ ['loc' => route('park-holidays'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.9'],
+ ['loc' => route('owner-stories'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '0.8'],
+ ['loc' => route('rights'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.8'],
+ ['loc' => route('evidence'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '0.8'],
+ ['loc' => route('evidence.create'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.6'],
];
return response()->view('sitemap', compact('urls'))