From 07a0166c1eaf9adf14b1aa98b81dfef75eee6cd8 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Thu, 23 Jul 2026 21:45:31 +0100 Subject: [PATCH 1/2] Use right method to get urls --- src/Http/Controllers/GetUrlsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/GetUrlsController.php b/src/Http/Controllers/GetUrlsController.php index e12a92a..c3ed34b 100644 --- a/src/Http/Controllers/GetUrlsController.php +++ b/src/Http/Controllers/GetUrlsController.php @@ -16,7 +16,7 @@ public function __invoke(): array return []; } - if (! $item = Data::find($url)) { + if (! $item = Data::findByRequestUrl($url)) { return []; } From e6a03a1d9aa7a25b64fbc3de0df1116842104614 Mon Sep 17 00:00:00 2001 From: Jan Willem Rigters Date: Mon, 27 Jul 2026 11:49:24 +0200 Subject: [PATCH 2/2] Change url output, small text fix --- resources/js/components/CacheTrackerModal.vue | 2 +- src/Http/Controllers/GetUrlsController.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/js/components/CacheTrackerModal.vue b/resources/js/components/CacheTrackerModal.vue index 96ff649..7f97571 100644 --- a/resources/js/components/CacheTrackerModal.vue +++ b/resources/js/components/CacheTrackerModal.vue @@ -77,7 +77,7 @@ axios
- +
diff --git a/src/Http/Controllers/GetUrlsController.php b/src/Http/Controllers/GetUrlsController.php index c3ed34b..5013d3f 100644 --- a/src/Http/Controllers/GetUrlsController.php +++ b/src/Http/Controllers/GetUrlsController.php @@ -30,6 +30,8 @@ public function __invoke(): array return collect(Tracker::all()) ->filter(fn ($tracked) => in_array($item, $tracked['tags'])) + ->pluck('url') + ->values() ->all(); } }