From 01c1438eee962c594bb9a03d3cb17d8806ef7dd0 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Wed, 18 Dec 2024 04:17:30 +0330 Subject: [PATCH] fixed test error bug --- app/Models/Customer.php | 3 +++ resources/views/website/rss/post.blade.php | 2 ++ resources/views/website/rss/product.blade.php | 2 ++ 3 files changed, 7 insertions(+) diff --git a/app/Models/Customer.php b/app/Models/Customer.php index 75767dd6..8a732389 100644 --- a/app/Models/Customer.php +++ b/app/Models/Customer.php @@ -79,4 +79,7 @@ public function avatar(){ } + public function hasRole(){ + return false; + } } diff --git a/resources/views/website/rss/post.blade.php b/resources/views/website/rss/post.blade.php index 0d2bad08..46f8c485 100644 --- a/resources/views/website/rss/post.blade.php +++ b/resources/views/website/rss/post.blade.php @@ -1,3 +1,4 @@ +@cache('sitemap_attach'. cacheNumber(), 3600) {{config('app.name')}} @@ -17,3 +18,4 @@ @endforeach +@endcache diff --git a/resources/views/website/rss/product.blade.php b/resources/views/website/rss/product.blade.php index 88cf36de..f2c672f3 100644 --- a/resources/views/website/rss/product.blade.php +++ b/resources/views/website/rss/product.blade.php @@ -1,3 +1,4 @@ +@cache('sitemap_attach'. cacheNumber(), 3600) {{config('app.name')}} @@ -17,3 +18,4 @@ @endforeach +@endcache